Thanks!
If you limit the node labels with node_label_max, it picks the biggest labels. You can show specific labels like so:
library(metacoder)
x = parse_tax_data(hmp_otus, class_cols = "lineage", class_sep = ";",
class_key = c(tax_rank = "taxon_rank", tax_name = "taxon_name"),
class_regex = "^(.+)__(.+)$")
heat_tree(x,
node_label = ifelse(taxon_ranks %in% c('r', 'p', 'c'), taxon_names, ''),
node_size = n_obs,
node_color = n_obs)
heat_tree(x,
node_label = ifelse(n_supertaxa < 3, taxon_names, ''),
node_size = n_obs,
node_color = n_obs)
Let me know if you need more help.
Best,
Zach