Re: [R] legend title in qplot

2009-07-24 Thread RON70
PLEASE IGNORE MY PREVIOUS MAIL RON70 wrote: > > Thank you for your reply. Yes I am reading that document and ofcourse > simultaniously trying to apply in my current problem as well. Yes still I > am learning. > > Here I have my code : > > library(ggplot2) > library(plyr) > dat = rnorm(1000);

Re: [R] legend title in qplot

2009-07-24 Thread RON70
Thank you for your reply. Yes I am reading that document and ofcourse simultaniously trying to apply in my current problem as well. Yes still I am learning. Here I have my code : library(ggplot2) library(plyr) dat = rnorm(1000); variable = rep(c("Variable:1", "Variable:2"), each=500); coll = rep

Re: [R] legend title in qplot

2009-07-21 Thread baptiste auguie
?scale_fill_discrete() qplot(x,y,data=data.frame(x=1,y=1,f="a"),fill=f) + scale_fill_discrete("test") baptiste HTH, 2009/7/21 rajesh j > Hi, > > I've used the following command in qplot > qplot(a$V1,geom="histogram",binwidth=0.15,fill = > factor(a$V2),ylab="Frequency",xlab="Rate"); > but the

[R] legend title in qplot

2009-07-20 Thread rajesh j
Hi, I've used the following command in qplot qplot(a$V1,geom="histogram",binwidth=0.15,fill = factor(a$V2),ylab="Frequency",xlab="Rate"); but the title in the legend shows up as factor(a$V2)...how can i change this? -- Rajesh.J [[alternative HTML version deleted]] _