R/add_error_envelope.R
add_model_predictions.Rd
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 adds model predictions to a plot.
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.
Edward Lavender