KlausVigo / tanggle

phylogenetic networks using ggplot2 and ggtree
https://klausvigo.github.io/tanggle
11 stars 5 forks source link

Branches with color gradient #3

Open mgerschwitzeidt opened 3 years ago

mgerschwitzeidt commented 3 years ago

Hello, I would like to plot the evolution of a continuous trait onto a phylogenetic network. The trait values for the internal nodes were reconstructed from external node valus with phylonetworks and now I would like to color the network branches with color gradients from each parent node to its child node(s). In ggtree, I can achive that task with an aes after specifing "continuous = TRUE" (e.g. see attached figure, made from example data: https://yulab-smu.top/treedata-book/chapter4.html). Using ggtree_2.5.0.991, I can create color gradients with the tree layouts "slanted" and "rectangular" (amongst others). However, in tanggle, the feature "continuous" seems to be missing. Therefore, using an aes, the branches recieve a color corresponding to the child node only instead of a color gradient. A color gradient feature would be a great addition to tanggle. Do you think you will implement that at some point?

Rplot

crsl4 commented 3 years ago

Thanks for your interest in tanggle! Yes, we definitely want to add this option to the package, but we are lacking manpower at the moment with a long to-do list to go through. We do expect to add this functionality at some point, but we are unable to give you a timeframe at this point, sorry!