Hi Richard.

One probabilistic ASR method that samples character histories is the method of stochastic mapping (Huelsenbeck et al. 2003). This method is implemented in the phytools function make.simmap, and stochastic map trees can be visualized using an S3 plot methods for objects of class "simmap" generated by the function. Another helper function markChanges can add hash marks to the tree to demarcated sampled character state changes. That being noted, any single stochastic map is pretty much meaningless, and to make inferences we need to integrate over of a sample of 100 or 1,000 maps.

If you want to do parsimony ancestral state reconstruction this is implemented in phangorn under (I believe) the 'ACCTRAN' criterion. This is described in a vignette which can be viewed here: https://cran.r-project.org/web/packages/phangorn/vignettes/Ancestral.pdf.

All the best, Liam

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

On 11/5/2015 8:22 AM, Richard Harris wrote:
Hi,

I am looking for possible code (if any code exists) for creating a tree/ 
graphical representation of ancestral state reconstruction with discrete traits 
that clearly highlights state-changes or where state changes are predicted to 
occur?

Thanks.


                                        
_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/[email protected]/


_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/[email protected]/

Reply via email to