How to query_upset in empty intersection
acpguedes opened this issue · 1 comments
acpguedes commented
I just quanto to know how to query the empty intersection (the 3rd bar)
´´´
queries=list(
upset_query(
intersect=c('Drama', 'Comedy'),
color='red',
fill='red',
only_components=c('intersections_matrix', 'Intersection size')
)
´´´
set_size(8, 4)
upset(
movies, genres, name='genre', min_size=10,
encode_sets=FALSE, # for annotate() to select the set by name disable encoding
matrix=(
intersection_matrix(
geom=geom_point(
shape='square',
size=3.5
),
segment=geom_segment(
linetype='dotted'
),
outline_color=list(
active='darkorange3',
inactive='grey70'
)
)
+ scale_color_manual(
values=c('TRUE'='orange', 'FALSE'='grey'),
labels=c('TRUE'='yes', 'FALSE'='no'),
breaks=c('TRUE', 'FALSE'),
name='Is intersection member?'
)
+ scale_y_discrete(
position='right'
)
+ annotate(
geom='text',
label='Look here →',
x='Comedy-Drama',
y='Drama',
size=5,
hjust=1
)
),
queries=list(
upset_query(
intersect=c('Drama', 'Comedy'),
color='red',
fill='red',
only_components=c('intersections_matrix', 'Intersection size')
)
)
)