Question: How do I add circles to the tips of a phylogenetic tree that have white fill and a black border in ggtree?
0
gravatar for Namenlos
3 months ago by
Namenlos0
Namenlos0 wrote:

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?

ADD COMMENTlink modified 3 months ago by Guangchuang Yu2.4k • written 3 months ago by Namenlos0

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 REPLYlink written 3 months ago by e.rempel1000

I edited the original question.

ADD REPLYlink written 3 months ago by Namenlos0
1
gravatar for Guangchuang Yu
3 months ago by
Guangchuang Yu2.4k
China/Guangzhou/Southern Medical University
Guangchuang Yu2.4k wrote:
ggtree(tree) + geom_tippoint(size=3, fill="white", color="black", shape=21)
ADD COMMENTlink written 3 months ago by Guangchuang Yu2.4k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2019 users visited in the last hour
_