What does it mean, "isTip" not found, the following command I have used few days ago and it was working but now it shows error.
0
0
Entering edit mode
6.2 years ago

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

R ggtree • 1.6k views
ADD COMMENT
1
Entering edit mode

You probably want color=isTip instead of color="isTip". Could you post the output of sessionInfo() if this doesn't solve the issue?

ADD REPLY
0
Entering edit mode

Thanks @h.mon and @cpad0112 the issue has been solved.

ADD REPLY
1
Entering edit mode

look at the use of isTip in your code: subset=!isTip and color="isTip" abdul.suboor123

ADD REPLY

Login before adding your answer.

Traffic: 2392 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