tax_palette_plot: tax_palette plotting helper function

View source: R/tax_palette.R

tax_palette_plotR Documentation

tax_palette plotting helper function

Description

Check the named palette colour vector you created with tax_palette()

Usage

tax_palette_plot(named_pal_vec, max_n = NA)

Arguments

named_pal_vec

vector of colours named by taxa (e.g. tax_palette output)

max_n

NA to display all colours, or limit this

Value

ggplot

Examples

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


david-barnett/microViz documentation built on April 17, 2025, 4:25 a.m.