Re: [R-sig-phylo] using color function in phylomorphospace

2019-03-09 Thread Liam Revell
Cecile makes a good point. In this case if your tree has 36 edges all you would have to do is change your code such that: phylomorphospace(...,control=list(col.edge=setNames(1:36,tree$edge[,2]))) and you'll have the colors that correspond to the numeric vector 1:36. (These are just the 8

Re: [R-sig-phylo] using color function in phylomorphospace

2019-03-09 Thread Cecile Ane
colors can be numeric. for example: plot(1:36, 1:36, col=1:36) Cécile On Mar 8, 2019, at 8:42 PM, Liam Revell mailto:liam.rev...@umb.edu>> wrote: Dear Amanda. I'm a little confused by your code. If you want to use control=list(col.edge) you need to set col.edge to a vector of colors, but in