try this,
library(ggplot2) ggplot() + geom_histogram(aes(x=rnorm(100), fill=..count..))+ xlab(NULL)+ scale_y_continuous("")+ opts(legend.position="none") HTH, baptiste 2009/7/22 RON70 <ron_michae...@yahoo.com> > > I have following code on "qplot" : > > library(ggplot2) > ggplot() + geom_histogram(aes(x=rnorm(100), fill=..count..), xlab="", > ylab="") > > However above code doesnot seem to remove the xlab & ylab. What is the > correct code? I also want to remove the color-palate in the right side. Is > there any way to do that? > > Thanks > -- > View this message in context: > http://www.nabble.com/Question-on-qplot-tp24615077p24615077.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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.