[R] A simple normal-curve question

Dieter Menne dieter.menne at menne-biomed.de
Sat Apr 16 09:58:52 CEST 2011


helin_susam wrote:
> 
> x <- rnorm(100)
> y <- rlnorm(100)
> model <- lm(y~x)
> a <- resid(model)
> 
> How I show the all area under the normal curve?
> 
> 

First, always try plot(model). It can never hurt. Too bad the plot you want
is not among the six contenders (?plot.lm).
To do it manually:

plot(density(a))

Dieter




--
View this message in context: http://r.789695.n4.nabble.com/A-simple-normal-curve-question-tp3453283p3453703.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list