Reset to default
Introducing: Trending sort
You can now choose to sort by Trending, which boosts votes that have happened recently, helping to surface more up-to-date answers.
Trending is based off of the highest score sort and falls back to it if no posts are trending.
An answer for those searching in 2016.
ggplot2 2.0, the switch argument will do this for
By default, the labels are displayed on the top and right of the plot. If “x”, the top labels will be displayed to the bottom. If “y”, the right-hand side labels will be displayed to the left. Can also be set to “both”.
ggplot(...) + ... + facet_grid(facets, switch="both")
As of ggplot2 2.2.0,
Strips can now be freely positioned in
strip.position argument (deprecates
Current docs, are still at 2.1, but
strip.position is documented on the dev docs.
By default, the labels are displayed on the top of the plot. Using strip.position it is possible to place the labels on either of the four sides by setting
strip.position = c("top", "bottom", "left", "right")
ggplot(...) + ... + facet_wrap(facets, strip.position="right")
you can now use
facet_wrap(~var, strip.position = "bottom"), though for some reason this results in the labels being located above the axis tick mark labels, rather than below (which I think would make more sense), as you can see from my screenshot of a small portion of my graph
If you want to have the label below, you have do to this
ggplot(zzz, aes(x = c1, y = c2)) + facet_wrap(~ gp, scales = "free", nrow = 3, strip.position = "bottom") + geom_point() + theme( aspect.ratio = 1, strip.background = element_blank(), strip.placement = "outside" )
As seen here: https://github.com/tidyverse/ggplot2/issues/2622