how can i draw two regression curves in one graph??i can draw them seperately using scatter.smooth.but can"t adjust them in one single graph -- View this message in context: http://n4.nabble.com/DRAW-TWO-REGRESSION-CURVES-IN-ONE-GRAPH-tp1457544p1457544.html Sent from the R help mailing list archive at Nabble.com.
On Sat, Jan 30, 2010 at 12:39 PM, ATANU <ata.sonu at gmail.com> wrote:> how can i draw two regression curves in one graph??i can draw them seperately > using scatter.smooth.but can"t adjust them in one single graphUsing the built in iris data frame: library(lattice) xyplot(Sepal.Length ~ Sepal.Width, iris, group = iris$Species, col 1:3, type = c("p", "r"))