This page explains the ideas behind Rclade so the function arguments make sense.
Rclade reads the taxonomic assignment of each tip from its label. Several formats are supported:
| Format | Example label | Detected by |
|--------|---------------|-------------|
| GTDB | d__Bacteria;p__Firmicutes;c__Bacilli | prefix d__/p__/... |
| Silva | Bacteria;Firmicutes;Bacilli | semicolon ranks, no codes |
| NCBI | cellular organisms; Bacteria; Firmicutes | named ranks |
| embedded (custom_rank) | k__Bacteria;p__Firmicutes | explicit codes |
| custom_regex | Domain:Bacteria\|Phylum:Firmicutes | user regex |
Detection is automatic (taxonomy_format = "auto"). To force a format, set taxonomy_format explicitly. See detect_taxonomy_format and parse_taxonomy.
"Collapsing" means replacing a whole clade with a single triangle whose width encodes the clade's age range. Rclade finds the MRCA (Most Recent Common Ancestor) of all tips that share a taxonomic group, then draws a triangle for that clade.
You can collapse in three ways:
rank = "phylum" collapses every phylum at once.group = list(GroupA = c("tip1","tip2")) collapses a custom set (must be monophyletic; check with validate_custom_groups).clade = "Cyanobacteriota" collapses only that named clade.A group can only be collapsed cleanly if it is monophyletic (all descendants share one MRCA). Non-monophyletic groups trigger a warning and are skipped by default (strict = FALSE); set strict = TRUE to abort instead. Check with check_monophyly.
triangle_mode: how the triangle's width is drawn — max, min, mixed (adaptive), or none.space_mode: proportional gives more vertical room to larger clades; equal gives each clade the same room.Rclade adds a geological timescale to the x-axis using deeptime (ICS 2023/02).
unit: the unit of your tree's edge lengths — Ma (mega-annum) or Ga (giga-annum). If NULL, Rclade auto-detects from the magnitude.timescale_levels: which bands to show — eras, eons, periods.add_timescale = FALSE disables it (useful for circular layouts or cladograms).color_palette: viridis (default, color-blind safe), any RColorBrewer name, rainbow, or a color vector.color_mapping: a named vector for exact control, e.g. c("Proteobacteria" = "#E41A1C").color_rank: color by a rank different from the one you collapse on.legend_position, legend_nrow, legend_ncol. For very large legends, see split_legend.Rclade understands ancestral nodes of life:
LUCA — Last Universal Common Ancestor (MRCA of Bacteria + Archaea)LACA — Last Archaeal Common AncestorLBCA — Last Bacterial Common AncestorUse them with highlight = "LUCA" or resolve_special_identifier.
When labels are incomplete or missing taxonomy, supply a two-column file (tip_label, taxonomy_string) via taxonomy_file. See read_taxonomy_file and summarize_taxonomy_quality_with_file.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.