I think it is expected behavior with facet_grid. You can use facet_wrap instead if you want to scale=“free” for both x and y. However, it seems facet_wrap doesn’t work well with coord_flip (I got error message “Error in facet_render.wrap(plot$facet, panel, plot$coordinates, plot_theme(plot), : ggplot2 does not currently support free scales with a non-cartesian coord or coord_flip.”), therefore, I swap x and y in the ggplot call, remove coord_flip, as below:
mt <- ggplot(mtcars, aes(y=mpg, x=wt, colour = factor(cyl))) + geom_point()
mt + facet_wrap(~cyl, scales="free")
….then both x- and y- are free.
I hope this helps,…
Kaori
--
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example:
https://github.com/hadley/devtools/wiki/Reproducibility
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
---
You received this message because you are subscribed to the Google Groups "ggplot2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ggplot2+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.