I'm trying to make a phylogenetic tree with pie charts at the tips of the tree, but I'm really stuck with how to do it.
Here's a simple fabricated example
library("treeio")
library("ggtree")
nwk <- system.file("extdata", "sample.nwk", package="treeio")
tree <- read.tree(nwk)
ggplot(tree, aes(x, y)) + geom_tree() + theme_tree() + geom_tiplab()
If I now want to include a small pie chart at each tip to the right of the label names (hence the label names with letters should still be there), how should I do?
This code should work, using ggplot with ggtree