Is it possible to have hjust option in geom_tippoint?

666 views
Skip to first unread message

Migun Shakya

unread,
Apr 22, 2016, 1:13:10 PM4/22/16
to ggtree
Hi,

I am loving the package. It definitely makes working with trees lot easier and reproducible.

I was wondering if it is possible to move points from geom_tippoint() as you would move geom_tiplabel() using hjust option.

Thank you.
migun

gc...@connect.hku.hk

unread,
Apr 25, 2016, 9:18:17 AM4/25/16
to ggtree
there is not hjust parameter in geom_tippoint. If you want to move the points you need to prepare a data frame and pass it to geom_tippoint().

Migun Shakya

unread,
Apr 27, 2016, 1:43:17 PM4/27/16
to ggtree
I did that using following:

p %<+% gtype + geom_tippoint(aes(color=V2), size=4)

However, I am still confused how do I move the points?

Thank you

Yu, Guangchuang

unread,
Apr 27, 2016, 9:27:18 PM4/27/16
to Migun Shakya, ggtree
for example, you can use p %<+% gtype + geom_tippoint(aes(x=x+0.1, color=V2), size=4)


--
You received this message because you are subscribed to the Google Groups "ggtree" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bioc-ggtree...@googlegroups.com.
To post to this group, send email to bioc-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bioc-ggtree/f6b3cc07-347b-4d07-8885-a88fc0b8c927%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
--~--~---------~--~----~------------~-------~--~----~
Guangchuang Yu, PhD Candidate
State Key Laboratory of Emerging Infectious Diseases
School of Public Health
The University of Hong Kong
Hong Kong SAR, China
-~----------~----~----~----~------~----~------~--~---

Migun Shakya

unread,
May 4, 2016, 10:04:47 AM5/4/16
to ggtree
Thank you. That worked.
Reply all
Reply to author
Forward
0 new messages