plot.pbsEDM: Plot data and results of an object of class 'pbsEDM' as time...

View source: R/plotting.R

plot.pbsEDMR Documentation

Plot data and results of an object of class 'pbsEDM' as time series and phase plots

Description

Plots time series of 'N_t' and 'Y_t', 2d phase plots of 'N_t' vs 'N_t-1' and 'Y_t' vs 'Y_t-1', and 3d phase plot of 'Y_t' vs 'Y_t-1' vs 'Y_t-2'. See vignette "Analyse a simple time series". Only working if 'N$N_t' values are in there (needs another switch if not). And very likely only works for univariate time series for now, not pred-prey for example.

Usage

## S3 method for class 'pbsEDM'
plot(x, portrait = TRUE, ...)

Arguments

x

list object of class 'pbsEDM', an output from 'pbsEDM()'

portrait

if TRUE then plots panels in portrait mode for manuscripts/Rmarkdown (3x2), false is landscape (2x3, filled columnwise) for presentations.

...

additional arguments to be passed onto other plotting functions, in particular 'last.time.to.plot' to plot only up to that time step (to loop through in a movie), and late.num to plot the final number of time steps in a different colour, or label.cex for (a) etc. label sizes.

Value

Five panels in 2x3 or 3x2 format, in current plot environment

Author(s)

Andrew Edwards

Examples


 aa <- pbsEDM(NY_lags_example,
              lags = list(N_t = 0:1),
              first_difference = TRUE)
 plot(aa)


luke-a-rogers/pbsedm documentation built on June 3, 2024, 5:20 a.m.