Generic S3 plot()
and autoplot()
(ggplot2) methods.
# S3 method for ResamplingCV autoplot( object, task, fold_id = NULL, plot_as_grid = TRUE, train_color = "#0072B5", test_color = "#E18727", crs = NULL, ... ) # S3 method for ResamplingRepeatedCV autoplot( object, task, fold_id = NULL, repeats_id = NULL, plot_as_grid = TRUE, train_color = "#0072B5", test_color = "#E18727", crs = NULL, ... ) # S3 method for ResamplingCV plot(x, ...) # S3 method for ResamplingRepeatedCV plot(x, ...)
object |
|
---|---|
task |
|
fold_id |
|
plot_as_grid |
|
train_color |
|
test_color |
|
crs |
|
... | Not used. |
repeats_id |
|
x |
|
if (mlr3misc::require_namespaces(c("sf", "patchwork", "ggtext"), quietly = TRUE)) { library(mlr3) library(mlr3spatiotempcv) task = tsk("ecuador") resampling = rsmp("cv") resampling$instantiate(task) autoplot(resampling, task) + ggplot2::scale_x_continuous(breaks = seq(-79.085, -79.055, 0.01)) autoplot(resampling, task, 1) autoplot(resampling, task, c(1, 2)) }#>#>#>#>