Plot a legend for a visual predictive check (VPC)
simulated confidence interval plotted. Should match argument passed to vpc::vpc(). Default is c(0.05, 0.95).
prediction intervals plotted. Should match argument passed to vpc::vpc(). Default is c(0.05, 0.95).
Named list of logicals specifying which layers to include on the plot. Passed to show argument of vpc::vpc().
Defaults are:
Observed points: obs_dv = TRUE.
Observed quantiles: obs_ci = TRUE
Simulated inter-quantile range:pi = FALSE
Simulated inter-quantile area: pi_as_area = FALSE
Simulated Quantile CI: pi_ci = TRUE
Observed Median: obs_median = TRUE
Simulated Median: sim_median = FALSE
Simulated Median CI: sim_median_ci = TRUE
label for lower limit of quantification in the plot legend.
list containing the plot elements to be updated. Default is set by pmxhelpr_vpc_theme().
Other arguments passed to ggplot2::theme().
a ggplot2 object
plot_vpclegend()
#> Warning: Arguments in `...` must be used.
#> ✖ Problematic argument:
#> • na.rm = TRUE
#> ℹ Did you misspell an argument name?
plot_vpclegend(
pi = c(0.025, 0.975),
ci = c(0.025, 0.925),
shown = list(obs_dv = FALSE, obs_ci = TRUE,
pi = FALSE, pi_as_area = FALSE, pi_ci = TRUE,
obs_median = TRUE,
sim_median =FALSE, sim_median_ci = TRUE))
#> Warning: Arguments in `...` must be used.
#> ✖ Problematic argument:
#> • na.rm = TRUE
#> ℹ Did you misspell an argument name?