plot_ppc | R Documentation |
A sample of parameters representing the uncertainty within the dataset is passed to the function. All parameter combinations and exposure patterns are simulated and the range of predicted frond numbers is derived for a single study. The uncertainty is displayed by a Posterior Predictive Plot (PPC). The data (rs_mean, obs_mean and obs_full) must have the following format (col1 = time, col2 = data of interest, col3 = trial name). Data for uncertainties (rs_range) must have the format: col1 = time, col2 = lower boundaries, col3 = upper boundaries, col4 = trial. The user should take care of the input data and consider whether control data and data at time zero should be included in the model check.
plot_ppc(
rs_mean,
rs_range,
col_number = 2,
obs_mean = NULL,
obs_full = NULL,
xy_lim = NULL,
study = NULL
)
rs_mean |
|
rs_range |
|
col_number |
column to plot, default = 2 |
obs_mean |
|
obs_full |
|
xy_lim |
optional |
study |
optional |
a ggplot2 plot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.