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 = NULL, 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_upsetmodeA 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
dataand other arguments for the method are collected. 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.
