View source: R/add_error_envelope.R
add_model_predictions | R Documentation |
This function has been renamed. Please use add_error_envelope
instead.
add_model_predictions(
x,
CI = list(),
fCI = "poly",
CI_gp = list(col = scales::alpha("lightgrey", 0.8), border = FALSE),
add_fitted = TRUE,
fitted_gp = list(col = "black", lwd = 1, lty = 1)
)
x |
A numeric vector defining the x values at which fitted values/CIs will be plotted. |
CI |
A named list with fitted values (optional) and lower and upper CIs (i.e. |
fCI |
A character defining the method by which CIs will be added to a plot: as lines ( |
CI_gp |
A named list of graphical parameters for CIs. If |
add_fitted |
A logical input defining whether or not add the fitted line. |
fitted_gp |
A named list of graphical parameters for the fitted line (passed to |
The function is designed for continuous explanatory variables (i.e., adding regression lines and CIs to a plot). See add_error_bars
for discrete explanatory variables.
The function adds model predictions to a plot.
Edward Lavender
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.