%<% {ggtree}R Documentation

%<%

Description

update tree

Usage

pg %<% x

Arguments

pg

ggplot2 object

x

update by x

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)

[Package ggtree version 2.0.4 Index]