ggupset icon indicating copy to clipboard operation
ggupset copied to clipboard

Combine scale_x_upset with scale_y_break

Open erikagucciardo opened this issue 2 years ago • 1 comments

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!

erikagucciardo avatar Sep 05 '22 11:09 erikagucciardo

I could also use this feature

erhoppe avatar Mar 23 '23 11:03 erhoppe