Hi Alejandro,

The info you want is given in the example script of the dataset bimac, which is 
included for ouch. To see the help page:

require(ouch)
data(bimac)
?bimac

Then what you need is:

tree <- with(bimac,ouchtree(node,ancestor,time/max(time),species))
plot(tree,node.names=TRUE)

The option you need is the node.names=TRUE option. 

Also, it is (sparsely) documented in the ouchtree help page, under the plot 
method:

?ouchtree

Marguerite

On Jan 24, 2011, at 7:30 AM, Alejandro Gonzalez wrote:

> Hello,
> 
> I want to paint regimes on an ouch tree based on a specific dichotomous 
> trait. I've identified the nodes and branches on the phylogeny where the 
> selection regimes would change based on an ancestral state reconstruction of 
> the character of interest. I wanted to know if there is a way of showing the 
> node numbers of a plotted image of the ouchtree object as can be done in ape 
> for a phylo object using nodelabels(). I ask this because when I transform my 
> phylo object to an ouch object the node numbers no longer correspond.
> How can one identify which node numbers correspond to specific nodes on the 
> phylogeny? Or do I simply have to make it out from the information available 
> using print(ouchtree object)?
> 
> Thanks,
> 
> Alejandro
> 
> __________________________________
> 
> Alejandro Gonzalez Voyer
> 
> Post-doc
> 
> Estación Biológica de Doñana
> Consejo Superior de Investigaciones Científicas (CSIC)
> Av Américo Vespucio s/n
> 41092 Sevilla
> Spain
> 
> Tel: + 34 - 954 466700, ext 1749
> 
> E-mail: alejandro.gonza...@ebd.csic.es
> 
> Web page: https://docs.google.com/View?id=dfs328dh_14gwwqsxcg
> 
> 
> 
> 
>       [[alternative HTML version deleted]]
> 
> _______________________________________________
> R-sig-phylo mailing list
> R-sig-phylo@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-phylo

____________________________________________
Marguerite A. Butler
Associate Professor
Department of Zoology
University of Hawaii
2538 McCarthy Mall, Edmondson 259
Honolulu, HI  96822

FAX:   808-956-9812
Dept: 808-956-8617
http://www2.hawaii.edu/~mbutler
http://www.hawaii.edu/zoology/


        [[alternative HTML version deleted]]

_______________________________________________
R-sig-phylo mailing list
R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo

Reply via email to