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

Let labels_inside argument of coord_axes_inside() support "x", "y" independently? #167

Open
psychelzh opened this issue Sep 12, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@psychelzh
Copy link

For example, in such circumstances, we could only let X axis labels be inside and let Y axis labels be outside:

library(ggplot2)
dat <- expand.grid(
  id = letters[1:3],
  time = 1:100
) |> 
  dplyr::mutate(y = rnorm(dplyr::n()) * 1000)
ggplot(dat, aes(x = time, y = y)) +
  geom_line() +
  facet_grid(cols = vars(id)) +
  ggh4x::coord_axes_inside(labels_inside = TRUE) +
  theme_classic()

Created on 2024-09-12 with reprex v2.1.1

@teunbrand
Copy link
Owner

Thanks I think this is a good suggestion.

@teunbrand teunbrand added the enhancement New feature or request label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants