plot_taxa_heatmap: Heatmap using phyloseq and pheatmap

Description Usage Arguments Value Author(s) Examples

View source: R/plot_taxa_heatmap.R

Description

Plot heatmap using phyloseq-class object as input.

Usage

1
2
plot_taxa_heatmap(x, subset.top, transformation, VariableA, heatcolors = NULL,
  ...)

Arguments

x

phyloseq-class object.

subset.top

either NA or number of Top OTUs to use for plotting.

transformation

either 'log10', 'clr','Z', 'compositional', or NA

VariableA

main variable of Interest.

heatcolors

is the option for colors in pheatmap. Default is to use viridis inferno

...

Arguments to be passed pheatmap.

Value

A pheatmap plot object.

Author(s)

Sudarshan A. Shetty (sudarshanshetty9@gmail.com)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
  # Example data
    library(microbiomeutilities)
    library(viridis)
    data("biogeogut")
    ps0 <- biogeogut

    p <- plot_taxa_heatmap(ps, taxonomic.level = "Genus", subset.top = 10,
    VariableA = "SampleType",
    heatcolors = NA)
          
## End(Not run)

microsud/microbiomeutilities-shiny documentation built on May 7, 2019, 9:38 a.m.