This function converts a list into a matrix format suitable for creating an
UpSet plot. It always returns a matrix for a horizontal
UpSet plot.
Usage
# S3 method for class 'list_upset'
fortify_matrix(
data,
mode = "distinct",
...,
data_arg = caller_arg(data),
call = NULL
)
Arguments
- data
A list of sets.
- mode
A string of
"distinct"
,"intersect"
, or"union"
indicates the mode to define the set intersections. Check https://jokergoo.github.io/ComplexHeatmap-reference/book/upset-plot.html#upset-mode for details.- ...
These dots are for future extensions and must be empty.
- data_arg
The argument name for
data
. Developers can use it to improve messages. Not used by the user.- call
The execution environment where
data
and other arguments for the method are collected, e.g.,caller_env()
. Developers can use it to improve messages. Not used by the user.
ggalign attributes
intersection_sizes
: An integer vector indicating the size of each intersection.set_sizes
: An integer vector indicating the size of each set.
See also
Other fortify_matrix methods:
fortify_matrix.GISTIC()
,
fortify_matrix.MAF()
,
fortify_matrix.default()
,
fortify_matrix.matrix()
,
fortify_matrix.matrix_upset()
,
fortify_matrix.phylo()