ggtree-format-painter: %<%

Description Usage Arguments Details Value Author(s) Examples

Description

update tree

Usage

1
pg %<% x

Arguments

pg

ggtree object

x

tree object

Details

This operator apply the visualization directives in ggtree object (lhs) to visualize another tree object (rhs), that is similar to Format Painter.

Value

updated ggplot object

Author(s)

Guangchuang Yu

Examples

1
2
3
4
5
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)

ggtree documentation built on Nov. 15, 2020, 2:09 a.m.