This is a test version of Biostars. For the public version, visit https://www.biostars.org.
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.

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

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

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

0 answers

No answers yet.

Log in to answer this question.