example code from bamm-project.org website for analyzing bamm output in R
function for plotting bamm event data on a phylogeny and color coding tips by the primary region of occurrence