On Sat, Jan 30, 2010 at 12:39 PM, ATANU <ata.s...@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 graph
Using the built in iris data frame: library(lattice) xyplot(Sepal.Length ~ Sepal.Width, iris, group = iris$Species, col = 1:3, type = c("p", "r")) ______________________________________________ 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.