Learn R Programming

coRNAi (version 1.22.0)

MainFitPlot: Diagnostic plot

Description

Plots residuals vs fitted values after fitting of main effects.

Usage

MainFitPlot(fit, xlab = "Fitted values", ylab = "Residuals", sd.fit = TRUE, main = "Residuals vs Fitted", ...)

Arguments

fit
a fit from lmmain, rlmmain or similar
xlab
label for x-axis
ylab
label for y-axis
sd.fit
logical, should the local estimator of the standard deviation be plotted
main
main title for the plot
...
arguments to be passed on to the plot function

Value

a plot

See Also

locfit

Examples

Run this code

## simulated data

fitted.value = rnorm(100,2,1)
residuals = rnorm(100,0,1)
fit = list(fitted.value=fitted.value, residuals = residuals)
class(fit) = "lm"
MainFitPlot(fit)

Run the code above in your browser using DataLab