?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 <akshay.raj...@gmail.com> > 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]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- _____________________________ Baptiste AuguiƩ School of Physics University of Exeter Stocker Road, Exeter, Devon, EX4 4QL, UK Phone: +44 1392 264187 http://newton.ex.ac.uk/research/emag ______________________________ [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.