R/upset.R
upset_text_percentage.RdFor use together with intersection_size or intersection_ratio
upset_text_percentage(digits = 0, sep = "", mode = "distinct")How many digits to show when rounding the percentage?
set to space (' ') if you prefer a whitespace between the number and the \% sign.
region selection mode for computing the numerator in ratio. See get_size_mode() for accepted values.
ggplot2::aes(label=!!upset_text_percentage())
#> Aesthetic mapping:
#> * `label` -> `paste(...)`