intersection_ratio {ComplexUpset} | R Documentation |
Barplot annotation of relative intersections sizes
Description
A large intersection size can be driven by a large number of members in a group; to account for that, one can divide the intersection size by the size of a union of the same groups. This cannot be calculated for the null intersection (observations which do not belong to either of the groups).
Usage
intersection_ratio(
mapping = aes(),
counts = TRUE,
bar_number_threshold = 0.75,
text_colors = c(on_background = "black", on_bar = "white"),
text = list(),
text_mapping = aes(),
mode = "distinct",
denominator_mode = "union",
...
)
Arguments
mapping |
additional aesthetics for |
counts |
whether to display count number labels above the bars |
bar_number_threshold |
if less than one, labels for bars height greater than this threshold will be placed on (not above) the bars |
text_colors |
a name vector of characters specifying the color when |
text |
additional parameters passed to |
text_mapping |
additional aesthetics for |
mode |
region selection mode, defines which intersection regions will be accounted for when computing the size. See |
denominator_mode |
region selection mode for computing the denominator in ratio. See |
... |
Arguments passed on to
|