For use together with intersection_size or intersection_ratio

upset_text_percentage(digits = 0, sep = "", mode = "distinct")

Arguments

digits

How many digits to show when rounding the percentage?

sep

set to space (' ') if you prefer a whitespace between the number and the \% sign.

mode

region selection mode for computing the numerator in ratio. See get_size_mode() for accepted values.

Examples

ggplot2::aes(label=!!upset_text_percentage())
#> Aesthetic mapping: 
#> * `label` -> `paste(...)`