The MCMCgrowth
class contains the results of a growth prediction
consider parameter variability based on a model
fitted using an MCMC algorithm.
It is a subclass of list with items:
sample: Parameter sample used for the calculations.
simulations: Individual growth curves calculated based on the parameter sample.
quantiles: Tibble with the limits of the credible intervals (5%, 10%, 50%, 90% and 95%) for each time point.
model: Instance of FitDynamicGrowthMCMC
used for predictions.
env_conditions: A tibble with the environmental conditions of the simulation.
# S3 method for MCMCgrowth
print(x, ...)# S3 method for MCMCgrowth
plot(
x,
y = NULL,
...,
add_factor = NULL,
alpha_80 = 0.5,
fill_80 = "grey",
alpha_90 = 0.5,
fill_90 = "grey",
label_y1 = "logN",
label_y2 = add_factor,
line_col = "black",
line_type = 1,
line_size = 1,
line_type2 = 2,
line_col2 = "black",
line_size2 = 1,
ylims = NULL
)
The object of class MCMCgrowth
to plot.
ignored.
ignored
Includes the variation of one environmental factor in the plot. It must be one of the column names in x$env_conditions.
transparency of the ribbon for the 80th posterior. .5 by default.
fill colour of the ribbon for the 80th posterior. "grey" by default.
transparency of the ribbon for the 90th posterior. .5 by default.
fill colour of the ribbon for the 90th posterior. "grey" by default.
label of the primary y axis. "logN" by default.
label of the secondary y axis. The name of the environmental factor by default.
colour of the line representing the median. "black" by default.
linetype for the line representing the median. solid by default.
size of the line representing the median. 1 by default.
linetype for the line representing the environmental condition. Dashed by default.
colour of the line representing the environmental condition. "black" by default.
size of the line representing the environmental condition. 1 by default.
limits of the primary y-axis. NULL
by default (let ggplot choose).
print(MCMCgrowth)
: print of the model
plot(MCMCgrowth)
: plot of predicted growth (prediction band).