Biostar Beta. Not for public use.
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
Entering edit mode
21 months ago
Huazhong Agricultural University, China

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 • 339 views
ADD COMMENTlink
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 REPLYlink
0
Entering edit mode

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

ADD REPLYlink
1
Entering edit mode

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

ADD REPLYlink

Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.3.1