R/autoplot.R
autoplot.ResamplingSptCVCluto.Rd
Generic S3 plot()
and autoplot()
(ggplot2) methods.
# S3 method for ResamplingSptCVCluto autoplot( object, task, fold_id = NULL, plot_as_grid = TRUE, train_color = "#0072B5", test_color = "#E18727", tickformat_date = "%Y-%m", crs = NULL, nticks_x = 3, nticks_y = 3, point_size = 3, axis_label_fontsize = 11, ... ) # S3 method for ResamplingRepeatedSptCVCluto autoplot( object, task, fold_id = NULL, repeats_id = NULL, plot_as_grid = TRUE, train_color = "#0072B5", test_color = "#E18727", crs = NULL, ... ) # S3 method for ResamplingSptCVCluto plot(x, ...) # S3 method for ResamplingRepeatedSptCVCluto plot(x, ...)
object |
|
---|---|
task |
|
fold_id |
|
plot_as_grid |
|
train_color |
|
test_color |
|
tickformat_date |
|
crs |
|
nticks_x |
|
nticks_y |
|
point_size |
|
axis_label_fontsize |
|
... | Not used. |
repeats_id |
|
x |
|
if (FALSE) { if (mlr3misc::require_namespaces(c("sf", "skmeans", "plotly"), quietly = TRUE)) { library(mlr3) library(mlr3spatiotempcv) task_st = tsk("cookfarm") resampling = rsmp("sptcv_cluto", folds = 5, time_var = "Date") resampling$instantiate(task_st) # plot autoplot(resampling, task_st) autoplot(resampling, task_st, 1) autoplot(resampling, task_st, c(1, 2)) } }