Skip to contents

This function renders an UpSet plot based on the provided subset of data.

Usage

render_upset(subset, min_elements_in_intersection = 100)

Arguments

subset

A data frame containing the data to be used for the UpSet plot.

min_elements_in_intersection

An integer specifying the minimum number of elements in an intersection to be included. Default is 100.

Value

A ggplot object representing the UpSet plot.

Details

The function processes the input data to handle missing values, converts columns to numeric, and filters intersections based on the specified minimum number of elements. It then orders the sets and creates the UpSet plot using the ComplexUpset package.

Examples

if (FALSE) { # \dontrun{
# Example usage
render_upset(subset, min_elements_in_intersection = 100)
} # }