plot.RiskMap_pred_target_shp {RiskMap} | R Documentation |
Plot Method for RiskMap_pred_target_shp Objects
Description
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.
Value
A ggplot
object showing the plot of the specified predictive target or summary.
Author(s)
Emanuele Giorgi e.giorgi@lancaster.ac.uk
Claudio Fronterre c.fronterr@lancaster.ac.uk
See Also
pred_target_shp
, ggplot
, geom_sf
,
aes
, scale_fill_distiller