View source: R/CreateAddedVariablePlots.R
Plot added variable plots. Much credit to: https://stackoverflow.com/questions/59150905/is-there-a-ggplot2-analogue-to-the-avplots-function-in-r
1 | CreateAddedVariablePlots(nms, fit, dir = "./", save.plot = TRUE)
|
nms |
Character vector. Regressors to be plotted against residuals. Each regressor is individually plotted against the externally studentized residuals. No default. |
fit |
lm object. LM model that has been fit to the data. No default. |
dir |
Character vector of lenght 1. Directory in which to store the plot. Ignored if save.plot is FALSE. Defaults to "./" |
save.plot |
Logical vector of length 1. If TRUE the added variable plots are saved to disk. Defaults to TRUE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.