plot_pred_obs: Plot predictions versus observed values of 'Y_t' for list of...

View source: R/plotting.R

plot_pred_obsR Documentation

Plot predictions versus observed values of 'Y_t' for list of 'pbsEDM' objects, for various values of 'E'

Description

Plot the predicted versus observed values of 'Y_t' for various values of 'E', using the output (a list of 'pbsEDM' objects) from 'pbsEDM_Evec()'. Each value of 't' corresponds to focal point 't* = t - 1'.

Usage

plot_pred_obs(
  E_res,
  E_components = 5,
  E_cols = c("orange", "blue", "green", "red", "black"),
  last.time.to.plot = NULL,
  E_cex = seq(1.7, 0.6, length = 5),
  portrait = NULL,
  label = NULL,
  label.cex = 0.7
)

Arguments

E_res

List of 'pbsEDM' objects as output from 'pbsEDM_Evec()'

E_components

How many of the first E_res components to show

E_cols

Vector of colours, one for each value of E

last.time.to.plot

Last time value of 't' to use when plotting.

E_cex

Vector of sizes, one for each value of E

portrait

dummy argument that allows '...' to be passed from 'plot_pbsEDM_Evec()', from which we want 'last.time.to.plot'.

label

label to annotate plot, such as '(a)' etc. for six-panel figure

label.cex

size of label annotation

Value

Figure in the current plot enivironment

Author(s)

Andrew Edwards

Examples


  aa <- pbsEDM_Evec(NY_lags_example$N_t)
  plot_pred_obs(aa)


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