Create taxon names suitable for visualization with color. A rank can be supplied to aggregate colors higher than the current rank.

add_taxon_name_color(
  ta,
  method = "total_rel_abundance",
  n = 12,
  samples = NULL,
  taxa = NULL,
  rank = NULL
)

Arguments

ta

a tidyamplicons object

method

the method on which to arrange the taxon names.

n

integer denoting the amount of most abundant taxa to display. Capacity at 12.

samples

optional vector of sample_id's of interest

taxa

optional vector of taxon_id's of interest