[R] DRAW TWO REGRESSION CURVES IN ONE GRAPH
Gabor Grothendieck
ggrothendieck at gmail.com
Sun Jan 31 00:18:06 CET 2010
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 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"))
More information about the R-help
mailing list