%<% | R Documentation |
update tree
pg %<% x
pg |
ggtree object |
x |
tree object |
This operator apply the visualization directives in ggtree object (lhs) to visualize another tree object (rhs), that is similar to Format Painter.
updated ggplot object
Guangchuang Yu
library("ggplot2")
nwk <- system.file("extdata", "sample.nwk", package="treeio")
tree <- read.tree(nwk)
p <- ggtree(tree) + geom_tippoint(color="#b5e521", alpha=1/4, size=10)
p %<% rtree(30)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.