View source: R/plot-genome-function.R
This function will crteate a heatmap, either static (via ggplot2) or interactive (via plotly), that will allow for the visualization of genomes in a given dataset that complete different functions
1 2 3 | genomic_func_heatmap(data, otu_tibble = NULL, tax_tibble = NULL,
ps_orig = NULL, interactive = TRUE, relative_abundance = FALSE,
abundance_threshold = NULL, relative_abundance_threshold = NULL)
|
data |
The output from either the |
otu_tibble, |
tax_tibble the output from |
ps_orig |
the original phyloseq object that was used to create dataset passed to the 'data' argument |
interactive |
default TRUE; if TRUE, then the heatmap will be plotted with
|
relative_abundance |
default FALSE; if TRUE the heatmap will use relative abundance as its fill color. If FALSE then abundance will be used |
abundance_threshold |
default NULL; The minimum abundance number required to be included in the heatmap |
relative_abundance_threshold |
default NULL; The minimum percent relative abundance requied to be included in the heatmap |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.