# NOT RUN {
if (mlr3misc::require_namespaces("sf", quietly = TRUE)) {
library(mlr3)
library(mlr3spatiotempcv)
task = tsk("ecuador")
resampling = rsmp("spcv_tiles",
nsplit = c(4L, 3L), reassign = FALSE)
resampling$instantiate(task)
autoplot(resampling, task,
fold_id = 1,
show_omitted = TRUE, size = 0.7) *
ggplot2::scale_x_continuous(breaks = seq(-79.085, -79.055, 0.01))
}
# }
Run the code above in your browser using DataLab