Hi all, whenever I try to plot a histogram using qplot() function of
ggplot2 library, I get error like this :
qplot(rnorm(1000), geom=histogram, binwidth=0.2, main = , xlab=,
ylab=)
Error in scale[[1]] : subscript out of bounds
However if I remove ylab= argument, then it is working fine. Am I
Hi megh,
Unfortunately there's a known bug which prevents you from setting the
y axis title in this way. Instead you can do :
qplot(...) + scale_y_continuous()
I think I've figured out a work around and it will be fixed in a future release.
Hadley
On Mon, Jul 13, 2009 at 2:15 AM,
2 matches
Mail list logo