Plot AEME variable
plot_var.Rd
Plot AEME variable
Usage
plot_var(
df = NULL,
aeme,
model,
var_sim,
ylim = NULL,
xlim,
var_lims,
obs = NULL,
add_obs = TRUE,
level = FALSE,
facet = FALSE,
cumulative = FALSE,
print_plots = FALSE
)
Arguments
- df
dataframe; output from
get_var
. IfNULL
,get_var
will be called andvar_sim
will be used to extract the variable of interest fromaeme
for each model.- aeme
aeme; object.
- model
vector; of models to be used. Can be `dy_cd`, `glm_aed`, `gotm_wet`.
- var_sim
string; of variable to plot
- ylim
numeric vector of length 2; limits for the y-axis. Defaults to NULL and calculates this based on the data to be plotted.
- xlim
numeric; x-axis limits
- var_lims
numeric vector of length 2; limits for the variable. Defaults to NULL and will generate common limits for all variables.
- obs
list; output from
observations
- add_obs
logical; add observations to plot
- level
logical; include lake level. Only applies for contour plots.
- facet
logical; if
TRUE
, for variables with depth, plot each model in a separate facet. IfFALSE
, plot each model in a separate plot and return a list of plots. IfTRUE
, for variables without depth, plot each model in a separate facet. IfFALSE
, plot each model as a separate line and return a plot. This only applies to variables without a depth component.- cumulative
logical; plot cumulative sum of variable
- print_plots
logical; print plots