[R] labeling in qplot

2009-08-04 Thread Mohan S
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", adjust=0.4, main="Arms Correlation All") + layer(data=data2, geom="densi

[R] param:qsec in ggplot2

2009-07-22 Thread Mohan S
Hii i have been trying to do a scatter plot with ggplot2, like the plot 6 here (http://had.co.nz/ggplot2/geom_point.html) .. where the points size vary with values > p + geom_point(aes (size = qsec)) but am not sure how to setup the parameter - qsec cou