- cv
a blockCV cv_* object; a cv_spatial, cv_cluster, cv_group,
cv_buffer, cv_nndm, or cv_knndm
- x
a simple features (sf) or SpatialPoints object of the spatial sample data used for creating
the cv object. This is required for point-based objects such as cv_cluster,
cv_group, cv_buffer, cv_nndm, and cv_knndm; it can be omitted for
cv_spatial objects.
- r
a terra SpatRaster object (optional). If provided, it will be used as background of the plots.
It also supports stars, raster, or path to a raster file on disk.
- nrow
integer; number of rows for facet plot
- ncol
integer; number of columns for facet plot
- num_plots
a vector of indices of folds; by default the first 10 are shown (if available).
You can choose any of the folds to be shown e.g. 1:3 or c(2, 7, 16, 22)
- max_pixels
integer; maximum number of pixels used for plotting r
- remove_na
logical; whether to remove excluded points in cv_buffer from the plot
- raster_colors
character; a character vector of colours for raster background e.g. terrain.colors(20)
- points_colors
character; two colours to be used for train and test points
- points_size
numeric; the size of points.
- points_alpha
numeric; the opacity of points
- bg_alpha
numeric; opacity of the background points (response 0) when the cv
object was built with presence_bg = TRUE (see ‘Details’). Lower values fade them so the
presences (response 1) stand out; set bg_alpha = points_alpha to disable the fading. Values
above points_alpha are capped at points_alpha (with a warning) so the background is never
drawn more prominent than the presences. Has no effect for objects that are not presence-background. The
default is 0.1.
- label_size
integer; size of fold labels when a cv_spatial object is used.
- combine_folds
logical; if TRUE, all folds are shown in a single map with points
coloured by their fold ID instead of separate train/test facets. Only available for
cv_spatial, cv_cluster, cv_group and cv_knndm objects.
- fold_colors
character; a vector of colours for the folds when combine_folds = TRUE;
by default a qualitative palette is generated for the number of folds.