Plot Method for RiskMap_pred_target_shp Objects
plot.RiskMap_pred_target_shp.Rd
Generates a plot of predictive target values or summaries over a shapefile.
Usage
# S3 method for class 'RiskMap_pred_target_shp'
plot(x, which_target = "linear_target", which_summary = "mean", ...)
Arguments
- x
An object of class 'RiskMap_pred_target_shp' containing computed targets, summaries, and associated spatial data.
- which_target
Character indicating the target type to plot (e.g., "linear_target").
- which_summary
Character indicating the summary type to plot (e.g., "mean", "sd").
- ...
Additional arguments passed to 'scale_fill_distiller' in 'ggplot2'.
Details
This function plots the predictive target values or summaries over a shapefile. It requires the 'ggplot2' package for plotting and 'sf' objects for spatial data.