Skip to content

02. plot_taxa_heatmap

Sudarshan edited this page Dec 28, 2017 · 1 revision

Heatmap

Many times heatmaps are used in microbiome data analysis. The function plot_taxa_heatmap uses input as phyloseq object and employs pheatmap for creating pretty heatmaps.

library(microbiomeutilities)
library(viridis)

data("biogeogut")

pseq <- biogeogut

p <- plot_taxa_heatmap(pseq, subset.top = 20, transformation = "compositional", VariableA = "SampleType")
print(p)

octocat

The plotting options can be extended for those available in pheatmap.

Clone this wiki locally