Dear R helpers,

I would like to have abline,  for a lm model for
example, lying within data range. Do you know how to
get it?

Thank in advance

Nguyen D Nguyen

#CODE
x<- rnorm(200, 35,5)
 y<- rnorm(200, 0.87,0.12)
 plot(y~x, xlim=c(0,50), pch=17, bty="l")
 abline(lm(y~x))

# I would like abline is between min(x) and max(x)

 

 

        [[alternative HTML version deleted]]

______________________________________________
[email protected] 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