Skip to content

Instantly share code, notes, and snippets.

@joranE
Created October 23, 2017 16:05
Show Gist options
  • Save joranE/a3a60075bf77b8e1e18e1d275c10d0a3 to your computer and use it in GitHub Desktop.
Save joranE/a3a60075bf77b8e1e18e1d275c10d0a3 to your computer and use it in GitHub Desktop.
Obscure ggplot faceting bug?
library(ggplot2)
# x axis tick labels for '4' panel, overlapping '6' facet label?
ggplot(mtcars,aes(mpg,disp)) +
facet_wrap(~cyl,dir = "v",nrow = 2,as.table = F) +
geom_point()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment