YuLab-SMU / ggtree

:christmas_tree:Visualization and annotation of phylogenetic trees
https://yulab-smu.top/contribution-tree-data/
839 stars 172 forks source link

New feature #443

Closed BastienBennetot closed 3 years ago

BastienBennetot commented 3 years ago

Hi, ggtree is a great package thanks. It would be awesome to have some kind of color gradient on my geom_highlight (from one color, each population its own, to white on the right side where there is label). This may be similar to this thread (https://stackoverflow.com/questions/29728082/how-can-i-apply-a-gradient-fill-to-a-geom-rect-object-in-ggplot2) but on trees. I made a custom pictures from geom_hilight example to show what it may looks like

Thanks in advance, Bastien

tree

GuangchuangYu commented 3 years ago

it's doable, as grid already supports it, https://developer.r-project.org/Blog/public/2020/07/15/new-features-in-the-r-graphics-engine/.

GuangchuangYu commented 3 years ago

done.