plot_contrastogram: Plot contrastogram

View source: R/8_plot_contrastogram.R

plot_contrastogramR Documentation

Plot contrastogram

Description

Plot contrastogram

Usage

plot_contrastogram(
  object,
  subgroupvar,
  formula = as.formula(paste0("~ 0 +", subgroupvar)),
  colors = make_colors(slevels(object, subgroupvar), guess_sep(object)),
  curve = 0.1
)

Arguments

object

SummarizedExperiment

subgroupvar

subgroup svar

formula

formula

colors

named color vector (names = subgroups)

curve

arrow curvature

Value

list returned by plotmat

Examples

if (requireNamespace('diagram', quietly = TRUE)){
   file <- download_data('halama18.metabolon.xlsx')
   object <- read_metabolon(file)
   plot_contrastogram(object, subgroupvar = 'subgroup')
}

bhagwataditya/autonomics documentation built on Dec. 1, 2024, 12:27 a.m.