#let's simulate some example data
set.seed(444)
taxa <- simFossilTaxa(p=0.1,q=0.1,nruns=1,mintaxa=20,maxtaxa=30,maxtime=1000,maxExtant=0)
#get the true time-sclaed tree
tree1 <- taxa2phylo(taxa)
#now let's try dateNodes
dateNodes(tree1)
#let's ignore $root.time
dateNodes(tree1,rootAge=NULL)
#with the lengthy tip-label based labels
#some of these will be hideously long
dateNodes(tree1,labelDates=TRUE)
Run the code above in your browser using DataLab