You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a weird bug today when I was trying to make a tree with scaled branch lengths based on node dates. I was plotting my trees using fortify(tree) %>% ggplot() + geom_tree() instead of ggtree(tree) and I found I could not get geom_tiplab to work. See the following example:
library(ggtree)
library(ape)
set.seed(0)
tree<- rtree(5)
# The following works
fortify(tree) %>% ggtree() + geom_tiplab()
# But this fails
fortify(tree) %>% ggplot() + geom_tree() + geom_tiplab()
# And so does this
ggplot(tree) + geom_tree() + geom_tiplab()
Below is the error message I get for both failing lines above
Error in layout == "circular" :
comparison (1) is possible only for atomic and list types
I am using the dev version of ggtree.
The text was updated successfully, but these errors were encountered:
Hi Guangchuang,
I found a weird bug today when I was trying to make a tree with scaled branch lengths based on node dates. I was plotting my trees using
fortify(tree) %>% ggplot() + geom_tree()
instead ofggtree(tree)
and I found I could not getgeom_tiplab
to work. See the following example:Below is the error message I get for both failing lines above
I am using the dev version of ggtree.
The text was updated successfully, but these errors were encountered: