Entering edit mode
6.2 years ago
abdul.suboor123
•
0
Pease help me out of this, the packages that I have followed are "ggtree, treerio, ggplot2, Biostrings, ape".
ggtree(tree1, layout = "rectangular") +
geom_text2(data=d, aes(subset=!isTip, label=label, color="isTip"), hjust=1) +
geom_tiplab(size=3, aes(angle=0)) + scale_color_manual(values=c("red", "firebrick")) +
geom_hilight(22, "brown") + geom_hilight(20, fill = "steelblue") +
geom_hilight(25, fill="darkgreen") + geom_hilight(32, fill="pink") +
geom_hilight(30, fill="grey") + geom_hilight(31, fill="purple") +
geom_hilight(29, fill="lightblue") + ggtitle("Protein Sequences correlation")
It shows the following error.
Error in FUN(X[[i]], ...) : object 'isTip' not found
You probably want
color=isTip
instead ofcolor="isTip"
. Could you post the output ofsessionInfo()
if this doesn't solve the issue?Thanks @h.mon and @cpad0112 the issue has been solved.
look at the use of
isTip
in your code:subset=!isTip
andcolor="isTip"
abdul.suboor123