Converts a matrix suitable for creating an UpSet plot. tune.matrix()
helps convert matrix
object to a matrix_upset
object.
Usage
# S3 method for class 'matrix_upset'
fortify_matrix(data, ..., data_arg = caller_arg(data), call = NULL)
Arguments
- data
A matrix where each row represents an element, and each column defines a set. The values in the matrix indicate whether the element is part of the set. Any non-missing value signifies that the element exists in the set.
- ...
Arguments passed on to
fortify_matrix.list_upset
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.
- 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.list_upset()
,
fortify_matrix.matrix()
,
fortify_matrix.phylo()