Highlight sets or intersections matching specified query.

upset_query(
  set = NULL,
  intersect = NULL,
  group = NULL,
  only_components = NULL,
  ...
)

Arguments

set

name of the set to highlight

intersect

a vector of names for the intersection to highlight; pass NA to select the empty intersection

group

name of the set to highlight when using group_by='sets'

only_components

which components to modify; by default all eligible components will be modified; the available components are 'overall_sizes', 'intersections_matrix', 'Intersection size', and any annotations specified

...
  • passed to geoms in modified components

Examples

upset_query(intersect=c('Drama', 'Comedy'), color='red', fill='red')
#> $set
#> NULL
#> 
#> $intersect
#> [1] "Drama"  "Comedy"
#> 
#> $group_by_group
#> NULL
#> 
#> $only_components
#> NULL
#> 
#> $color
#> [1] "red"
#> 
#> $fill
#> [1] "red"
#> 
upset_query(set='Drama', fill='blue')
#> $set
#> [1] "Drama"
#> 
#> $intersect
#> NULL
#> 
#> $group_by_group
#> NULL
#> 
#> $only_components
#> NULL
#> 
#> $fill
#> [1] "blue"
#>