Plotting ancestral states from MCMCglmm example

2019-02-22T10:27:51Z (GMT) by Ben Longdon
R code that takes tip and internal node model estimates from MCMCglmm phylogenetic mixed model, and associates them with the tree, so it you can output a tree file and read into figtree ( to make pretty colour gradients of states across the tree e.g.

Make sure to add the Nexus block to the final .tre file:

Begin trees;”

then your tree


Data from Roberts et al. 2018