liamrevell / phytools

GNU General Public License v3.0
207 stars 56 forks source link

adding timescale to a multiple stacked tree plot #54

Open Jigyasa3 opened 5 years ago

Jigyasa3 commented 5 years ago

Dear @KlausVigo @liamrevell

I was wondering if its possible to add the time scale to the tree of a multiple stacked plots. For example, I have generated a plot similar to the blog- http://blog.phytools.org/2017/10/plottreebarplot-with-multiple-stacked.html

But when I add the "time scale" to the tree, the code doesn't give the right values, nor the right position of label "time". code- "par(mfg=c(1,1)) #means go back to the previous plot axis(1,at=seq(30,150,by=50)) #run from 150mya to 30mya from left to right mtext("time",1,at=50,line=2) #add "time" to the x-axis"

Any suggestions? Regards Jigyasa