Four standard diagnostic plots for regression.
pD(rx, Title=NULL)
a result of lm, which can give fitted
, residuals
, and rstandard
.
title to be printed on the plot
Four diagnostic plots in a page.
Most frequently used diagnostic plots are 'observed vs. fitted', 'standarized residual vs. fitted', 'distribution plot of standard residuals', and 'Q-Q plot of standardized residuals'.
# NOT RUN {
pD(lm(uptake ~ Plant + Type + Treatment + conc, CO2), "Diagnostic Plot")
# }
Run the code above in your browser using DataLab