geom_tippoint | R Documentation |
add tip point layer for a tree
geom_tippoint(
mapping = NULL,
data = NULL,
position = "identity",
na.rm = FALSE,
show.legend = NA,
inherit.aes = TRUE,
...
)
mapping |
Set of aesthetic mapping created by |
data |
The data to be displayed in this layer. If 'NULL' (the default),
the data is inherited from the plot data as specified in the call to |
position |
Position adjustment. |
na.rm |
logical. If 'FALSE' (default), missing values are removed with a warning. If 'TRUE', missing values are silently removed. |
show.legend |
logical. Should this layer be included in the legends? 'NA', the default, includes if any aesthetics are mapped. 'FALSE' never includes, and 'TRUE' always includes. |
inherit.aes |
logical (defaults to 'TRUE'). If 'FALSE', overrides the default aesthetics, rather then combining with them. |
... |
addtional parameters that passed on to this layer. These are often aesthetics, used to set an aesthetic to a fixed value, like |
tip point layer
Guangchuang Yu
For more detailed demonstration, please refer to chapter 4.3.2 of Data Integration, Manipulation and Visualization of Phylogenetic Trees http://yulab-smu.top/treedata-book/index.html by Guangchuang Yu.
library(ggtree)
tr<- rtree(15)
x <- ggtree(tr)
x + geom_tippoint()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.