plotLm | R Documentation |
plotLm creates a 2x2 plot holding the 4 diagnoostic plots of a linear model. It is simply a shortcut for diving the current plot into 2x2 subplots and plotting the 4 plots.
plotLm(m)
m |
an object of class 'lm' |
Tomas Sieger
set.seed(1)
x<-rnorm(10)
d<-data.frame(x=x,y=2*x+rnorm(10))
m<-lm(y~x,d)
plotLm(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.