On Wed, Mar 7, 2012 at 4:21 PM, Gary M <garyr...@gmail.com> wrote:
> # Something like this does not work in v.0.9.0...(and it should,
> right?):
Nope, it's changed.
>
> df <- data.frame(a=c("A", "B"), b=rnorm(n=20, mean=.5, sd=.01))
> qplot(x=a, y=b, data=df) + scale_y_continuous(formatter="percent")
Try this:
library('scales')
qplot(x=a, y=b, data=df) + scale_y_continuous(labels=percent)
More details in the ggplot2-0.9.0 transition guide (e.g., see section
7, and in particular, the bottom of p. 31 for an example).
Dennis
>
> # or
>
> qplot(x=c("A", "B"), y=c(".5", ".7")) +
> scale_y_continuous(formatter="percent")
>
> # error msg:
> # Error in continuous_scale(c("y", "ymin", "ymax", "yend",
> "yintercept", :
> # unused argument(s) (formatter = "percent")
>
> # Help.
>
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
Dennis