upset_text_percentage {ComplexUpset}R Documentation

Generate percentage label of the intersection/union sizes ratio

Description

For use together with intersection_size or intersection_ratio

Usage

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())

[Package ComplexUpset version 1.3.3 Index]