Fill geom_text2 with background color

49 views
Skip to first unread message

Hovhannes Sahakyan

unread,
Mar 10, 2023, 11:49:08 AM3/10/23
to ggtree
Hello,

Please tell me if it is possible adding background color to geom_text2. It will cover the bottom layer and will make the labels clear. Below is an example.

tree <- rtree(25) ggtree(tree) + geom_text2(aes(label="D", subset=node==35))

I need the label "D" to be drawn on a white place.

Thank you!
Hovhannes
Reply all
Reply to author
Forward
0 new messages