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]]

