tax_palette_plot | R Documentation |
Check the named palette colour vector you created with tax_palette()
tax_palette_plot(named_pal_vec, max_n = NA)
named_pal_vec |
vector of colours named by taxa (e.g. tax_palette output) |
max_n |
NA to display all colours, or limit this |
ggplot
library(ggplot2)
data(dietswap, package = "microbiome")
myPal <- tax_palette(dietswap, rank = "Genus", pal = "brewerPlus", n = 40)
myPal %>% tax_palette_plot() # just to check the palette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.