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

Combine scale_x_upset with scale_y_break #34

Open
erikagucciardo opened this issue Sep 5, 2022 · 1 comment
Open

Combine scale_x_upset with scale_y_break #34

erikagucciardo opened this issue Sep 5, 2022 · 1 comment

Comments

@erikagucciardo
Copy link

Hi,

Thank you for a nice package!
I was wondering if there is a way to combine scale_x_upset with scale_y_break (package ggbreak).
When I add scale_y_break, the combination matrix under the bar plot disappears.
Alternatively, is there a way to combine the combination matrix of the plot made without scale_y_break with the bar plot portion of a plot made with scale_y_break? I can't seem to be able to access the grobs of these plots. If anyone could help, I would greatly appreciate it!

Example with "scale_x_upset" and "scale_y_break":
tidy_movies %>% distinct(title, year, length, .keep_all=TRUE) %>% ggplot(aes(x=Genres)) + geom_bar() + scale_x_upset(n_intersections = 20)+ scale_y_break(breaks = c(750,1000))

Thanks!

@erhoppe
Copy link

erhoppe commented Mar 23, 2023

I could also use this feature

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

2 participants