plot_meta_hm: plot metabolomics heatmap designed for use with gg.stack with...

Description Usage Arguments Examples

View source: R/plot_meta_hm.R

Description

plot metabolomics heatmap designed for use with gg.stack with other patient metadata, 16S, etc using 'Sample_ID' on the x axis

Usage

1
plot_meta_hm(data, row_mean_centered = T, organize_by = "method")

Arguments

data

dataframe containing all metabolite data in long form for one patient. should have the following variables: Sample_ID, compound, peak, method

row_mean_centered

whether to center by mean peak area per compound, default = TRUE

organize_by

either facet by method or order by hierarchical cluster. options are: "method" or "cluster"

Examples

1
2
meta_plot <- plot_meta_hm(meta,row_mean_centered=T,organize_by="cluster")
gg.stack(tax,meta.plot,heights=c(1,5))

elittmann/erictools documentation built on Feb. 2, 2020, 11:01 p.m.