plot_grid: Plots grid of abundance from OM and SDMs

Description Usage Arguments Details Examples

View source: R/plot_grid.R

Description

Plots the abundance grid for one year for OM and any SDMs passed in.

Usage

1
plot_grid(x, ..., year = 2020)

Arguments

x

An OM object output by one of the simulation functions.

...

SDMs to compare. Must be an SDM object output from one of the fitting functions (gam_sdm, brt_sdm, or mlp_sdm) or POM object output by predict.OM.

year

Year(s) to show. Can be one or a range.

Details

The SDMs which will be compared are SDM objects and have the 'start.forecast.year' as part of their meta data (in $meta). The total abudance (sum across all grid squares) will be plotted for the training data (to which the SDM was fit) and the test data (after 'start.forecast.year'). If 'start.forecast.year' is greater than the last year of data, then the forecast years are not plotted (since there are not data for those years).

Examples

1
2
3
sim <- SimulateWorld(start.year=2015, n.year=20)
mlp.fit <- mlp_sdm(sim, "temp")
plot_abund(sim, mlp.fit)

eeholmes/WRAP documentation built on Feb. 18, 2021, 10:51 a.m.