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, megh<megh700004 at yahoo.com>
wrote:>
> 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 missing
> something?
>
> Regards,
> --
> View this message in context:
http://www.nabble.com/Strange-error-in-qplot-tp24453872p24453872.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at 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.
>
--
http://had.co.nz/