I have been trying to plot discrete ancestral states at nodes with pie charts created using nodepie(). It works completely fine with the default layout. However, my original tree is large (>3000 tips) and I would like to represent the tree in a circular/fan layout with pie charts on the nodes. But, I get this error with the layouts "circular", "fan" and "radial":
Error in annotation_custom():
! Problem while converting geom to grob.
ℹ Error occurred in the 6th layer.
Caused by error in draw_panel():
! annotation_custom() only works with coord_cartesian()
Here's a reproducible example from the example dataset anoletree data:
Hi ggtree team,
I have been trying to plot discrete ancestral states at nodes with pie charts created using nodepie(). It works completely fine with the default layout. However, my original tree is large (>3000 tips) and I would like to represent the tree in a circular/fan layout with pie charts on the nodes. But, I get this error with the layouts "circular", "fan" and "radial":
Here's a reproducible example from the example dataset anoletree data:
Session Info: