Hello,
I am trying to color branches and points according to group in a simple 2D pca phylomorphospace. Here is an example code:
library(ggtreeSpace)
PCA.scores <- read.csv("trait_pca.csv")
clades <- read.csv("clades.csv") # contains grouping information
r.tree <- rtree(dim(PCA.scores)[1])
ggtreespace(tree, PCA.scores[,1:2], color = "#03045e") + geom_point(color = "#03045e")
Also if there's a way in ggtree itself, help with that is fine too.
Thank you!
Best,
Ricardo