plot_sim_ts {metafolio} | R Documentation |
This function lets you quickly visualize the time series of output from a simulation run.
plot_sim_ts(x, pal = rev(gg_color_hue(x$n_pop)), years_to_show = 30, burn = 1:50, shade_years = NULL, adj = 0.02, add_units = FALSE, yticks = rep(list(NA), 10), oma = c(4, 4.5, 1, 1))
x |
A list output object from a simulation run of
|
pal |
A colour palette for the lines. One colour per line (each line is a population time series). |
years_to_show |
How many years to plot after the burn in period. |
burn |
The number of years to discard as burn in at the beginning of the time series. |
adj |
|
shade_years |
Shade some years? Give a vector. Shading will be applied from the minimum to maximum value. Can be used to show burn in period. |
add_units |
Should the units be added to the y axis? |
yticks |
Position of ticks on the Y axis. |
oma |
|
arma_env_params <- list(mean_value = 16, ar = 0.1, sigma_env = 2, ma = 0) base1 <- meta_sim(n_pop = 10, env_params = arma_env_params, env_type = "arma", assess_freq = 5, decrease_b = 10) plot_sim_ts(base1, years_to_show = 70, burn = 1:30)