[R] xyplot and abline

hadley wickham h.wickham at gmail.com
Sat Sep 17 18:19:07 CEST 2005


> I wonderif there is a simple way to draw  a regression line in  the xyplot:

Try:

xyplot(y  ~  x| age.cut, xlab="x", ylab="y", type=c("p","r"))

Hadley




More information about the R-help mailing list