autoplot.ResamplingSpCVCoords | R Documentation |
Generic S3 plot()
and autoplot()
(ggplot2) methods.
## S3 method for class 'ResamplingSpCVCoords'
autoplot(
object,
task,
fold_id = NULL,
plot_as_grid = TRUE,
train_color = "#0072B5",
test_color = "#E18727",
sample_fold_n = NULL,
...
)
## S3 method for class 'ResamplingRepeatedSpCVCoords'
autoplot(
object,
task,
fold_id = NULL,
repeats_id = 1,
plot_as_grid = TRUE,
train_color = "#0072B5",
test_color = "#E18727",
sample_fold_n = NULL,
...
)
## S3 method for class 'ResamplingSpCVCoords'
plot(x, ...)
## S3 method for class 'ResamplingRepeatedSpCVCoords'
plot(x, ...)
object |
|
task |
|
fold_id |
|
plot_as_grid |
|
train_color |
|
test_color |
|
sample_fold_n |
|
... |
Passed to |
repeats_id |
|
x |
|
mlr3book chapter on "Spatial Analysis"
autoplot.ResamplingSpCVBlock()
autoplot.ResamplingSpCVBuffer()
autoplot.ResamplingSpCVEnv()
autoplot.ResamplingSpCVDisc()
autoplot.ResamplingSpCVTiles()
autoplot.ResamplingCV()
autoplot.ResamplingSptCVCstf()
if (mlr3misc::require_namespaces(c("sf"), quietly = TRUE)) {
library(mlr3)
library(mlr3spatiotempcv)
task = tsk("ecuador")
resampling = rsmp("spcv_coords")
resampling$instantiate(task)
autoplot(resampling, task) +
ggplot2::scale_x_continuous(breaks = seq(-79.085, -79.055, 0.01))
autoplot(resampling, task, fold_id = 1)
autoplot(resampling, task, fold_id = c(1, 2)) *
ggplot2::scale_x_continuous(breaks = seq(-79.085, -79.055, 0.01))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.