-
Notifications
You must be signed in to change notification settings - Fork 183
Description
Hi,
I’m trying to draw links between taxa in a circular tree using geom_taxalink(), but I consistently get an error. The same code works as expected with a rectangular layout.
To rule out issues with my own data, I reproduced the problem using a minimal example and a toy tree downloaded from
https://bioconnector.github.io/workshops/data/tree_newick.nwk using this code:
library(ggtree)
tree <- read.tree("tree_newick.nwk")
ggtree(tree, layout = "circular") +
geom_tiplab() +
geom_taxalink("E", "H", color = "blue3")
Error:
! Problem while converting geom to grob.
ℹ Error occurred in the 5th layer.
Caused by error in make_curvelink_data():
! object 'outward' not found
Run rlang::last_trace() to see where the error occurred.
Warning messages:
1: Unknown or uninitialised column: subgroup.
2: Unknown or uninitialised column: subgroup.
3: Unknown or uninitialised column: subgroup.
4: Unknown or uninitialised column: subgroup.
Please let me know if this might be a bug in the current version. I am using the lastest version of ggtree: 4.1.1
Thanks for your time and for maintaining ggtree.