Skip to content
Prev 208188 / 398503 Next

DRAW TWO REGRESSION CURVES IN ONE GRAPH

On Sat, Jan 30, 2010 at 12:39 PM, ATANU <ata.sonu at gmail.com> wrote:
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"))