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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to