plot.RiskMap_pred_target_grid {RiskMap}R Documentation

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 class 'RiskMap_pred_target_grid'
plot(x, which_target = "linear_target", which_summary = "mean", ...)

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.

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.

Value

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

Author(s)

Emanuele Giorgi e.giorgi@lancaster.ac.uk

Claudio Fronterre c.fronterr@lancaster.ac.uk

See Also

pred_target_grid


[Package RiskMap version 0.1.0 Index]