Skip to contents

Visualize sample coordinates from a crossomics_integration object and optionally overlay top microbiome/metabolome loading arrows.

Usage

plot_crossomics_integration(
  object,
  axes = c(1, 2),
  color_by = NULL,
  show_loading = FALSE,
  loading_block = c("both", "microbiome", "metabolome"),
  top_n = 10,
  loading_scale = 1
)

Arguments

object

A crossomics_integration object.

axes

Numeric vector of length 2 specifying plotted components.

color_by

Optional column name in sample_info.

show_loading

Should top feature loadings be displayed?

loading_block

Which loading block(s) should be displayed.

top_n

Number of features per block to plot when show_loading = TRUE.

loading_scale

Multiplier used to scale loading arrows.

Value

A ggplot object.