Error displayed when trying to annotate tree with boostrap values and Phylopic
1
0
Entering edit mode
723388 • 0
@723388-11429
Last seen 7.6 years ago

Hello all

I am currently using ggtree to annotate a phylogenetic tree with bootstrap values and phylophic as per instructions of the vignette but comes up with the same error . This is the code I used 

Protein_tree <- read.tree("~/Tree/Protein_Aligned_ggtree.nwk")

Labeled <- ggtree(Protein_tree,layout = "circular",branch.length = 0,) + ggtitle("Phylogenetic tree of WRKY transcription factors in A.thaliana and M.esculenta") + geom_tiplab (aes(angle=angle), geom = "text", size = 2.5)

Picture <- ggtree(Labled) %>% phylopic("FB60C2D9-E901-4A4C-96FB-A350424C9DFC",color = "green", alpha = .3)

"Error: ggplot2 doesn't know how to deal with data of class gg/ggplot"

ootstrap <- ggtree(Labled_tree) + geom_label(aes(label = bootstrap)) + geom_tiplab()

"Error: ggplot2 doesn't know how to deal with data of class gg/ggplot"

Would appreciate any advice on the subject. Thank you.

Warren 

ggtree • 1.4k views
ADD COMMENT
0
Entering edit mode
Guangchuang Yu ★ 1.2k
@guangchuang-yu-5419
Last seen 10 hours ago
China/Guangzhou/Southern Medical Univer…

Labeled <- ggtree(Protein_tree)

and then:

ggtree(Labled)

 

Combine them together, you are calling ggtree(ggtee(Protein_tree)).

how you expect ggtree() to work with ggtree() output?

 

ADD COMMENT

Login before adding your answer.

Traffic: 774 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6