ggtree-format-painter: %<%

%<%R Documentation

%<%

Description

update tree

Usage

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

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)

GuangchuangYu/ggtree documentation built on Oct. 31, 2024, 10:10 a.m.