Usage
residPlot(object, ...)
## S3 method for class 'lm':
residPlot(object, ...)
## S3 method for class 'SLR':
residPlot(object, xlab = "Fitted Values", ylab = "Residuals",
main = NULL, pch = 16, col = "black", lty.ref = 3, lwd.ref = 1,
col.ref = "black", resid.type = c("raw", "standardized", "studentized"),
outlier.test = TRUE, alpha = 0.05, loess = TRUE, lty.loess = 2,
lwd.loess = 1, col.loess = "black", trans.loess = 4, inclHist = TRUE,
...)
## S3 method for class 'POLY':
residPlot(object, ...)
## S3 method for class 'IVR':
residPlot(object, xlab = "Fitted Values", ylab = "Residuals",
main = NULL, pch = c(16, 21, 15, 22, 17, 24, c(3:14)), col = "rich",
lty.ref = 3, lwd.ref = 1, col.ref = "black", resid.type = c("raw",
"standardized", "studentized"), outlier.test = TRUE, alpha = 0.05,
loess = TRUE, lty.loess = 2, lwd.loess = 1, col.loess = "black",
trans.loess = 4, legend = "topright", inclHist = TRUE, ...)
## S3 method for class 'ONEWAY':
residPlot(object, xlab = "Fitted Values",
ylab = "Residuals", main = NULL, pch = 16, col = "black",
lty.ref = 3, lwd.ref = 1, col.ref = "black", resid.type = c("raw",
"standardized", "studentized"), bp = TRUE, outlier.test = TRUE,
alpha = 0.05, loess = TRUE, lty.loess = 2, lwd.loess = 1,
col.loess = "black", trans.loess = 4, inclHist = TRUE, ...)
## S3 method for class 'TWOWAY':
residPlot(object, xlab = "Fitted Values",
ylab = "Residuals", main = NULL, pch = 16, col = "black",
lty.ref = 3, lwd.ref = 1, col.ref = "black", resid.type = c("raw",
"standardized", "studentized"), bp = TRUE, outlier.test = TRUE,
alpha = 0.05, loess = TRUE, lty.loess = 2, lwd.loess = 1,
col.loess = "black", trans.loess = 4, inclHist = TRUE, ...)
## S3 method for class 'nls':
residPlot(object, xlab = "Fitted Values", ylab = "Residuals",
main = "", pch = 16, col = "black", lty.ref = 3, lwd.ref = 1,
col.ref = "black", resid.type = c("raw", "standardized", "studentized"),
loess = TRUE, lty.loess = 2, lwd.loess = 1, col.loess = "black",
trans.loess = 4, inclHist = TRUE, ...)
## S3 method for class 'nlme':
residPlot(object, xlab = "Fitted Values", ylab = "Residuals",
main = "", pch = 16, col = "black", lty.ref = 3, lwd.ref = 1,
col.ref = "black", resid.type = c("raw", "standardized", "studentized"),
loess = TRUE, lty.loess = 2, lwd.loess = 1, col.loess = "black",
trans.loess = 4, inclHist = TRUE, ...)
Arguments
object
An lm
or nls
object (i.e., returned from fitting a model with either lm
or nls
).
xlab
A string for labelling the x-axis.
ylab
A string for labelling the y-axis.
main
A string for the main label to the plot. Defaults to the model call.
pch
A numeric that indicates the plotting charachter to be used or a vector of numerics that indicates what plotting charachters codes to use for the levels of the second factor. See par
.
col
A vector of color names that indicates what color of points and lines to use for the levels of the first factor. See par
.
lty.ref
A numeric that indicates the line type to use for the reference line at residual=0. See par
.
lwd.ref
A numeric that indicates the line width to use for the reference line at residual=0. See par
.
col.ref
A numeric or character that indicates the line color to use for the reference line at residual=0. See par
.
resid.type
The type of residual to use. Raw residuals are used by default. See details.
outlier.test
A logical that indicates if an outlierTest
will TRUE
(default) be performed and if the indivdiual with the largest studentized residual is deemed to be a significant outlier it will be noted on the residual plot by its observatio
alpha
A numeric that indicates the alpha level to use for the outlier test (only used if outlier.test=TRUE
).
loess
A logical that indicates if a loess smoother line and approximate confidence interval band is fit to and shown on the residual plot (TRUE
).
lty.loess
A numeric that indicates the line type to use for loess fit line. See par
.
lwd.loess
A numeric that indicates the line width to use for loess fit line. See par
.
col.loess
A numeric or character that indicates the line color to use for loess fit line. See par
.
trans.loess
A single numeric that indicates how transparent the loess band should be (larger numbers are more transparent).
inclHist
A logical that indicates if a second pane that includes the histogram of residuals should be constructed.
legend
If TRUE
, draw a legend and the user must click in the upper-left corner of where the legend should be placed; if FALSE
do not draw a legend. If a vector of length 2 then draw the upper left corner of the legend at the coordinate
bp
A logical that indicates if the plot for the one-way and two-way ANOVA will be a boxplot (TRUE
; default) or not.
...
Other arguments to the generic plot
function.