Skip to content

Instantly share code, notes, and snippets.

@paleolimbot
Created July 4, 2019 03:25
Show Gist options
  • Select an option

  • Save paleolimbot/ec704c1079823a156e9a28e95f86ecd5 to your computer and use it in GitHub Desktop.

Select an option

Save paleolimbot/ec704c1079823a156e9a28e95f86ecd5 to your computer and use it in GitHub Desktop.
# remotes::install_github("paleolimbot/ggplot2@2b2f4fb9ad8ada3c2f614185441db1d790b8db2e")
library(ggplot2)
# plot with overlapping text
p <- ggplot(mpg, aes(cty * 100, hwy * 100)) +
geom_point() +
facet_wrap(vars(class))
# axis guides can now be customized!
p + guides(x = guide_axis(n_dodge = 2))
@paleolimbot

Copy link
Copy Markdown
Author
# remotes::install_github("paleolimbot/ggplot2@2b2f4fb9ad8ada3c2f614185441db1d790b8db2e")
library(ggplot2)

# plot with overlapping text
p <- ggplot(mpg, aes(cty * 100, hwy * 100)) +
  geom_point() +
  facet_wrap(vars(class))

# axis guides can now be customized!
p + guides(x = guide_axis(n_dodge = 2))

Created on 2019-07-03 by the reprex package (v0.2.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment