Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typo: scale_x_continuous #6178

Open
eyayaw opened this issue Nov 5, 2024 · 1 comment · May be fixed by #6198
Open

typo: scale_x_continuous #6178

eyayaw opened this issue Nov 5, 2024 · 1 comment · May be fixed by #6198
Labels
help wanted ❤️ we'd love your help!

Comments

@eyayaw
Copy link

eyayaw commented Nov 5, 2024

so we'll use scale_x_continuousdiscrete

- 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.

@teunbrand
Copy link
Collaborator

Thanks, well spotted! Is there any chance you'd be interested in preparing a PR to fix the mistake?

@teunbrand teunbrand added the help wanted ❤️ we'd love your help! label Nov 12, 2024
@mcol mcol linked a pull request Nov 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted ❤️ we'd love your help!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants