-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
help wanted ❤️we'd love your help!we'd love your help!
Description
so we'll use scale_x_continuousdiscrete
ggplot2/vignettes/articles/faq-axes.Rmd
Line 72 in e594b49
- Dodge axis labels: Add a `scale_*()` layer, e.g. `scale_x_continuous()`, `scale_y_discrete()`, etc., and customise the `guide` argument with the `guide_axis()` function. In this case we want to customise the x-axis, and the variable on the x-axis is discrete, so we'll use `scale_x_continuous()`. In the `guide` argument we use the `guide_axis()` and specify how many rows to dodge the labels into with `n.dodge`. This is likely a trial-and-error exercise, depending on the lengths of your labels and the width of your plot. In this case we've settled on 3 rows to render the labels. |
Metadata
Metadata
Assignees
Labels
help wanted ❤️we'd love your help!we'd love your help!