Skip to contents

Generates a bar plot summary of exposure-feature correlations using customizable modes.

Usage

plot_correlation_summary(
  expomicset,
  feature_type = c("degs", "omics", "factors", "factor_features", "exposures", "pcs"),
  mode = c("top_exposures", "top_features", "exposure_category", "assay", "summary"),
  top_n = 15
)

Arguments

expomicset

A MultiAssayExperiment object with correlation results in metadata.

feature_type

One of "degs", "factors", "omics", or "exposures".

mode

One of:

  • "top_exposures": Top exposures by assay (like plot_bar_correlate_exposure_fill)

  • "top_features": Top features by exposure category (like plot_bar_correlate_feature_fill)

  • "exposure_category": Total associations by exposure category

  • "assay": Total associations by omics assay

  • "summary": Patchwork layout combining all

top_n

Number of top exposures or features to display (for top modes). Default is 15.

Value

A ggplot2 object or a patchwork object (if mode = "summary").