Dear Mo,
This is rather easy. Add an ID to each data series, rbind them into one
data.frame and use the colour argument of qplot.
data1 <- data.frame(corArms = rnorm(1000))
data2 <- data.frame(corArms = rnorm(3000, sd = 0.5))
data3 <- data.frame(corArms = rnorm(2000, sd = 2))
data1$ID <- "Data
On Tue, 2009-08-04 at 20:16 -0700, Mohan S wrote:
> HI
>
> am plotting different density plots in one graph each with a different
> color.
>
> And i want to add labels to plot mentioning which color belongs to which
> data series.
>
> p2 <- qplot(corArms, data = data1, geom = "density", adju
2 matches
Mail list logo