View source: R/treedata-function.R
td_mutate | R Documentation |
mutate data for tree annotation layer
td_mutate(..., .f = NULL)
... |
additional parameters that pass to dplyr::mutate |
.f |
a function (if any, defaults to NULL) that pre-operate the data |
The 'td_mutate()' function returns another function that can be used to mutate ggtree() plot data. The function can be passed to the 'data' parameter of geom layer to perform adding new variables and preserving existing ones.
A function to mutate ggtree plot data
mutate
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.