Open fionnualabulman opened 3 days ago
Hi, thanks! Does this do what you want?
library(metacoder)
#> This is metacoder version 0.3.7 (stable)
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 == "g", '', taxon_names),
node_size = n_obs,
node_color = n_obs
)
Created on 2024-10-15 with reprex v2.1.1
Hello and thanks for the great package.
I am producing a heat tree matrix of differential relative abundances in fungal taxa. I would like to display differences in taxa down to the order rank, however including the labels for this rank makes the figure unreadable. Is there a way to exclude all labels for this rank only (keeping labels for class, phyla & kingdom)?
I have read the FAQ "The labels are too small!" but hope there is another option instead of selectively suppressing them with "dont_print".
I have tried to filter "cleaned_names" for taxon_ranks = "o" but this produces an error as the vectors are no longer the same length:
Thanks for your help with this.