Generates a plot of predictive target values or summaries over a shapefile.
# S3 method for RiskMap_pred_target_shp
plot(x, which_target = "linear_target", which_summary = "mean", ...)A ggplot object showing the plot of the specified predictive target or summary.
An object of class 'RiskMap_pred_target_shp' containing computed targets, summaries, and associated spatial data.
Character indicating the target type to plot (e.g., "linear_target").
Character indicating the summary type to plot (e.g., "mean", "sd").
Additional arguments passed to 'scale_fill_distiller' in 'ggplot2'.
Emanuele Giorgi e.giorgi@lancaster.ac.uk
Claudio Fronterre c.fronterr@lancaster.ac.uk
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.
pred_target_shp, ggplot, geom_sf,
aes, scale_fill_distiller