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

Semi-discrete position scales #94

Closed
teunbrand opened this issue Feb 21, 2023 · 1 comment
Closed

Semi-discrete position scales #94

teunbrand opened this issue Feb 21, 2023 · 1 comment

Comments

@teunbrand
Copy link
Owner

Basically a discrete position scale, but you can control whereto a level is mapped, so that you can separate groups for example. A convenient companion for guide_axis_nested().

Adoption has been suggested here: const-ae/gggroupedscale#1 (comment)

@teunbrand
Copy link
Owner Author

You can now do this in the 0.2.4 branch.

# A boxplot with interactions
devtools::load_all("~/packages/ggh4x")
#> ℹ Loading ggh4x
#> Loading required package: ggplot2

ggplot(mpg, aes(interaction(year, cyl), displ)) +
  geom_boxplot() +
  scale_x_manual(values = c(1, 2, 4, 6, 7, 9, 10))

Created on 2023-03-28 with reprex v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant