Dear Dr. Yu,
I like the circular plot from the ggtree package very much.
I made NJ tree using the ape package and then plotted the tree with ape plot.phylo (type="fan") and ggtree circular layout, respectively. Personally, I like the ggtree circular plot better than fan plot with ape. I would like to color the edges of the tree according to groups. However, I found that ape and ggtree displayed clusters of the same NJ tree very differently. Because I started from the same NJ tree, I would expect the two plots should be identical to each other in terms of clusters and colors for each group.
I attached my code for both plots, could you please give me some hints on what's wrong with it? If possible, could you please correct my code for ggplot? (I guess my code for ape should be correct).
Thank you very much in advance and look forward to your reply!
Best,
Haixiao