autoplot.spatial_initial_split: Create a ggplot for a spatial initial rsplit.
Description
This method provides a good visualization method for a spatial
initial rsplit.
Usage
# S3 method for spatial_initial_split
autoplot(object, ..., alpha = 0.6)
Value
A ggplot object with each fold assigned a color, made using
ggplot2::geom_sf().
Arguments
object
A spatial_initial_rsplit object.
Note that only resamples made from
sf objects create spatial_initial_rsplit objects;
this function will not work for
resamples made with non-spatial tibbles or data.frames.
Opacity, passed to ggplot2::geom_sf().
Values of alpha range from 0 to 1, with lower values corresponding to more
transparent colors.
Details
This plot method is a wrapper around the standard spatial_rsplit method,
but it re-labels the folds as Testing and Training following the
convention for a standard initial_split object