const-ae / const-ae/ggupset

Combine scale_x_upset with scale_y_break

Open
#34 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
399
Forks
32
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the supplied tidy_movies example using scale_x_upset and ggbreak's scale_y_break, then compare it with the plot using scale_x_upset alone. Read the implementations or entry points for both scales and investigate how the combination matrix is represented when the y-axis is broken. Done means establishing supported combined behavior, or clearly documenting the limitation and any viable grob-level approach.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.