m + geom_density() +
scale_y_continuous(breaks=seq(0,.25, by=.05), labels=gsub("\\.", ",",
seq(0,.25, by=.05)))
Best,
Ista
> --
> 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
>
--
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org
Try this,
comma2 <- function(x, ...) {
format(x, decimal.mark = ",", trim = TRUE, scientific = FALSE, ...)
}
last_plot() + scale_y_continuous(formatter="comma2")