ggupset
ggupset copied to clipboard
Combine scale_x_upset with scale_y_break
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!
I could also use this feature