Hi Katharine.

You can try to search my blog for examples of the function add.simmap.legend. That might do what you want.

All the best, Liam

Liam J. Revell, Associate Professor of Biology
University of Massachusetts Boston
web: http://faculty.umb.edu/liam.revell/
email: liam.rev...@umb.edu
blog: http://blog.phytools.org

On 1/13/2017 10:57 AM, Katharine Walter wrote:
Hi,

I am trying to visualize a few different character traits on a tree using
phytools. My tiplabels are colored by sampling location and I'd like to add
alongside the tree a color bar that represents values of a discrete
character trait (bacterial serotypes) for each tip sample. There is a nice
explanation for how to do this for a continuous trait (
http://blog.phytools.org/2014/03/putting-barplot-next-to-plotted-tree.html)
and I'm wondering a way to visualize a discrete trait instead.

Thank you for your help!

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/


_______________________________________________
R-sig-phylo mailing list - R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/

Reply via email to