Learn R Programming

RiskMap (version 1.0.0)

plot.RiskMap_pred_target_grid: Plot Method for RiskMap_pred_target_grid Objects

Description

Generates a plot of the predicted values or summaries over the regular spatial grid from an object of class 'RiskMap_pred_target_grid'.

Usage

# S3 method for RiskMap_pred_target_grid
plot(x, which_target = "linear_target", which_summary = "mean", ...)

Value

A ggplot object representing the specified prediction target or summary statistic over the spatial grid.

Arguments

x

An object of class 'RiskMap_pred_target_grid'.

which_target

Character string specifying which target prediction to plot.

which_summary

Character string specifying which summary statistic to plot (e.g., "mean", "sd").

...

Additional arguments passed to the plot function of the terra package.

Author

Emanuele Giorgi e.giorgi@lancaster.ac.uk

Claudio Fronterre c.fronterr@lancaster.ac.uk

Details

This function requires the 'terra' package for spatial data manipulation and plotting. It plots the values or summaries over a regular spatial grid, allowing for visual examination of spatial patterns.

See Also

pred_target_grid