liamrevell / phytools

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

Feature request: branch coloring in phylo.to.map #151

Open alexweisberg opened 3 months ago

alexweisberg commented 3 months ago

Hi, I have used phytools for many research projects and it has been very useful, so thank you. I have a request for a feature, or I am otherwise not sure of the proper way to generate this particular plot.

I would like to plot a phylogeny associated to a map using the phylo.to.map function. I can successfully do this for my data, however it would be nice to also color the branches of the tree based on some value (i.e. bootstrap support). I can do this when I plot a cophylo object by extracting the rotated trees and then providing an edge.col parameter with a list of colors corresponding to each edge to the plot function, however this does not seem to work for phylo.to.map, it just ignores the edge.col parameter.

A second small request would be if it is possible to set an offset for the tip points of a tree in the phylo.to.map figure. I would like to have them slightly offset from the tree so that it is easier to see the tip branch lengths.

Thanks!