plot.RiskMap_pred_target_shp {RiskMap} | R Documentation |
Generates a plot of predictive target values or summaries over a shapefile.
## S3 method for class 'RiskMap_pred_target_shp'
plot(x, which_target = "linear_target", which_summary = "mean", ...)
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'. |
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.
A ggplot
object showing the plot of the specified predictive target or summary.
Emanuele Giorgi e.giorgi@lancaster.ac.uk
Claudio Fronterre c.fronterr@lancaster.ac.uk
pred_target_shp
, ggplot
, geom_sf
,
aes
, scale_fill_distiller