R/autoplot_spcv_cstf.R
autoplot.ResamplingSptCVCstf.Rd
Generic S3 plot()
and autoplot()
(ggplot2) methods.
# S3 method for ResamplingSptCVCstf 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 ResamplingRepeatedSptCVCstf autoplot( object, task, fold_id = NULL, repeats_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 ResamplingSptCVCstf plot(x, ...) # S3 method for ResamplingRepeatedSptCVCstf 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 |
|
# \donttest{ if (mlr3misc::require_namespaces(c("sf", "skmeans", "plotly"), quietly = TRUE)) { library(mlr3) library(mlr3spatiotempcv) task_st = tsk("cookfarm") resampling = rsmp("sptcv_cstf", 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)) }#> Warning: `arrange_()` is deprecated as of dplyr 0.7.0. #> Please use `arrange()` instead. #> See vignette('programming') for more help #> This warning is displayed once every 8 hours. #> Call `lifecycle::last_warnings()` to see where this warning was generated.#>#> #> #> #># }