Skip to contents

Produces graphical output of the summaries of a simulation models

Usage

plot_summary(x, variable, date, r = NULL, ...)

Arguments

x

An object of class sf, with simulation summaries.

variable

The variable to be drawn.

date

The date of the summary to be plotted.

r

An object of class SpatRaster, defining the raster topology.

...

Additional parameters (passed to scale definition, such as limits).

Value

An object of class ggplot.

Details

Appropriate values for x can originate from calls to simulation_summary. Alternatively, if summary functions were specified at the time of performing simulations, the result of the spatial simulation function (e.g. spwb_spatial) will already contain the summaries. A special case is made for spwb_land and growth_land, that are accepted inputs as x, because its element 'sf' is used.

Author

Miquel De Cáceres Ainsa, CREAF.