Examples
This page contains example analyses and visualizations built with baltic.
Sections group examples by application, and an example may appear in more than one section.
Basic tree plotting
simple tree
Time-scaled tree with branches and tips coloured by a discrete trait.
simple tree
Time-scaled tree with branches and tips shaded by the posterior probability of a trait state.
simple tree
Divergence tree with aligned tip labels and a scale bar.
Tree manipulation
exploded tree high level
Splits a tree into subtrees wherever a discrete trait changes and plots them apart, using a single high-level function.
exploded tree high level
Exploded tree split at trait changes, with branches shaded by the posterior probability of a trait state.
exploded tree low level
Builds the same exploded tree step by step: extracting, sorting and offsetting each subtree by hand.
exploded tree low level
Exploded tree built by hand, with subtrees sorted by trait and age and shaded by trait probability.
reduced tree camel
Tree reduced to the tips with one trait value, keeping their original shared history.
reduced tree human
Tree reduced to the tips with another trait value, keeping their original shared history.
state collapsed tree
Collapses clades that share a trait state into single tips, sized by the number of tips they replace.
state collapsed tree
Collapses clades that share a trait state into single tips, shaded by trait probability.
Time and dating
height 95HPD bars
State-collapsed tree with 95% HPD intervals of node heights drawn as bars.
root to tip
Root-to-tip regression of divergence against sampling date, with outliers highlighted.
samogitia ebola tmrca
Extracts the TMRCAs of chosen groups of tips from posterior trees and plots their densities.
tmrca hpd tree
Annotated subtree with collapsed clades, node support values and TMRCA posterior densities along the time axis.
Geography
map tree
Tree with tips linked by lines to their sampling locations on a world map.
Reticulate evolution
reassortment network
Time-scaled tree with reassortment events drawn as connections and a matrix of the segments involved in each.
tangled chain
Chain of trees plotted side by side, with lines connecting the same tips across neighbouring trees.
tangled chain
Trees for each genome segment side by side, with lines connecting the same tips across trees.
Nextstrain
auspice json io
Exports a tree to Auspice JSON for viewing on auspice.us, and reads it back in.
Special visualisations
gradient clade
Highlights selected clades with shaded, fading blocks drawn behind the tree.
Muller plot abstract
Muller plot of lineage frequencies through time, with lineages nested according to their tree.
skygrid calendar time
Skygrid estimate of effective population size through time on a calendar-date axis.
snp alignment
Tree next to an alignment of variable sites, with each site linked to its position on a genome map.
travel aware tree
Plots a tree from a travel-aware phylogeographic analysis, with branches coloured and tips labelled by location.
Utilities
auspice json io
Exports a tree to Auspice JSON for viewing on auspice.us, and reads it back in.
pad nodes
Divergence tree with extra vertical space added around chosen nodes and tips to set them apart.
samogitia ebola custom
Runs a custom function over a posterior sample of trees and plots the distribution of the result.
samogitia ebola tmrca
Extracts the TMRCAs of chosen groups of tips from posterior trees and plots their densities.
samogitia rabv trace state
Traces a discrete trait back along the ancestry of chosen tips across posterior trees, shown as state probabilities through time.
tree matrix
Time-scaled tree next to a matrix showing a categorical value for each tip in several columns.
tree matrix
Tree next to a colour matrix of several categorical tip traits, with legends.
Custom visualisations
homoplasy tree
Divergence tree with mutations marked on branches and lines joining branches that share a homoplasy.