How do I add circles to the tips of a phylogenetic tree that have white fill and a black border in ggtree?
1
0
Entering edit mode
4.0 years ago
Namenlos • 0

I would like to visualize a phylogenetic tree with circles at the tips. The tips should have white fill, but a black border. How do I do this in ggtree?

Here is a MWE:

library(ape)

library(ggtree) tree <- rtree(50)

ggtree(tree) + geom_tippoint(size=3, fill="white", color="black")

ggtree(tree) + geom_point(size=3, fill="white", color="black")

With both the geom_tippoint and geom_point functions, the circles are solidly black despite the presence of fill="white". What am I doing wrong?

ggtree visualization phylogenetic tree • 10k views
ADD COMMENT
0
Entering edit mode

Please, be more elaborate, e.g. provide the code you have tried, the error messages you have obtained, and so on. You would not expect a person to spend more time on the answer than you have spent on writing the question, would you?

ADD REPLY
0
Entering edit mode

I edited the original question.

ADD REPLY
2
Entering edit mode
4.0 years ago
Guangchuang Yu ★ 2.6k
ggtree(tree) + geom_tippoint(size=3, fill="white", color="black", shape=21)
ADD COMMENT

Login before adding your answer.

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