Re: [R-sig-phylo] plotting geologic time scale on circular tree

2018-01-03 Thread Liam J. Revell
Oops. I just realized that will plot the colors in reverse - with the most recent eras in the center. This should be fixed: plotTree(tree) obj<-geo.legend() r<-max(obj$leg[,1])-obj$leg[,2] plotTree(tree,type="fan",fsize=0.6,lwd=1) for(i in 1:nrow(obj$leg)){ color<-paste(strsplit(obj$colo

Re: [R-sig-phylo] plotting geologic time scale on circular tree

2018-01-03 Thread Liam J. Revell
If you're comfortable with solid colors, rather than semi-transparent as in geo.legend, you could do something like this: plotTree(tree) obj<-geo.legend() ## this is just to get the colors plotTree(tree,type="fan",lwd=1) for(i in nrow(obj$leg):1){ color<-paste(strsplit(obj$colors[i],"")

[R-sig-phylo] plotting geologic time scale on circular tree

2018-01-03 Thread Jacob Berv
Hi all, Does anyone know of a function to plot a geologic time scale as a series of concentric circles on a circularly plotted tree? As far as I can tell there are three available functions that can do this on a regular cladogram: axisGeo (phyloch) geoscale.Phylo (strap) geo.legend (phytools)