Visualize curves with autoplot()
mainCurve-based methods such as roc_curve(), pr_curve(), and gain_curve() support ggplot2::autoplot(). This allows for easy visualization of performance curves, which can be faceted by resample or class when using grouped data.
library(ggplot2)
hpc_cv |>
group_by(Resample) |>
roc_curve(obs, VF:L) |>
autoplot()