Description Usage Arguments Value Examples
Plot the treemaps and returns a list with a ggplot and a df with the summary of the data
1 2 3 4 5 6 7 8 |
df |
Data frame obtained from a phyloseq file using the function phyloseq_transform_to_long |
group1 |
first grouping level (do not quote) |
group2 |
second grouping level (do not quote) |
title |
Title for the treemap |
colors |
If NULL then the default viridis palette is used. If named vectors then the colors |
label_group1 |
If true, the higher level is labeled. If false, only boundaries are marked |
Plot the treemap Returns a list made of 2 elements
gg = the treemap as ggplot
df = a dataframe with the summarized data
1 2 | my_list <- phyloseq_long_treemap(phyloseq_long, division, class, "Singapore strait", colors=
structure(c("black", "white"),.Names="Mamiellophyceae", "Dinophyceae"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.