geom_nodepoint | R Documentation |
add node point layer to a tree
geom_nodepoint(
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 |
node point layer
Guangchuang Yu library(ggtree) tr<- rtree(15) x <- ggtree(tr) x + geom_nodepoint()
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.