Skip to contents

This function generates a prevalence plot using the CohortContrast GUI object. It extracts necessary components from the ccObject and passes them to the `plot_prevalence` function to generate the plot.

Usage

getPrevalencePlot(ccObject)

Arguments

ccObject

An object returned by the CohortContrast GUI, typically created when the "Create Visual Snapshot" button is pressed. It should contain target_row_annotation, target_col_annotation, and target_matrix components.

Value

A plot object generated by `plot_prevalence`.

Examples

if (FALSE) { # \dontrun{
# Assuming `ccObject` (visual snapshot) is already created via CohortContrast GUI
ccObject <- readRDS("./visual_snapshots/CohortContrastDataVisualSnapshot.rds")
getPrevalencePlot(ccObject)
} # }