Question About How To Draw A Phylogenetic Tree With Gradual Change Of Color
1
0
Entering edit mode
10.6 years ago
Cacau ▴ 520

Does anyone have any idea about how the following figure (especially the right one) is drawn? I think the gradual change of the color within one branch mighe be a difficulty in drawing the figure.

enter image description here

phylogeny • 5.3k views
ADD COMMENT
0
Entering edit mode

if your picture is already available as a vectorial drawing, open it in inkscape an use the gradient tool: http://inkscape.org/doc/basic/tutorial-basic.html

ADD REPLY
1
Entering edit mode
10.6 years ago
David W 4.9k

Presuming you want the clours to be derived from some data you've estimated for the tips/edges of the tree you could use the function plotBranchbyTrait in the R libraty phytools.

eg

library(phytools)
library(MASS)

set.seed(890) 
tr <- rcoal(50) 
tip_vals <- mvrnorm(Sigma=vcv(tr), mu=rep(0, 50)) #simulate traits by brownian motion down the tree ?vcv to understand this 
plotBranchbyTrait(tr,tip_vals, mode="tips", palette="heat.colors")

There are not doubt other tools for this sort of thing on offer in the Phylogenetics Task View

ADD COMMENT

Login before adding your answer.

Traffic: 2726 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6