Learn R Programming

ggtree (version 1.4.11)

plot: plot method

Description

plot method generics

Usage

"plot"(x, layout = "rectangular", branch.length = "branch.length", show.tip.label = TRUE, tip.label.size = 4, tip.label.hjust = -0.1, position = "branch", annotation = "rate", ndigits = 2, annotation.size = 3, annotation.color = "black", ...)
"plot"(x, layout = "rectangular", branch.length = "branch.length", show.tip.label = TRUE, tip.label.size = 4, tip.label.hjust = -0.1, position = "branch", annotation = "dN_vs_dS", annotation.size = 3, annotation.color = "black", ndigits = 2, ...)
"plot"(x, layout = "rectangular", branch.length = "TREE", show.tip.label = TRUE, tip.label.size = 4, tip.label.hjust = 0, ...)
"plot"(x, layout = "rectangular", branch.length = "branch.length", show.tip.label = TRUE, tip.label.size = 4, tip.label.hjust = 0, position = "node", annotation = "bootstrap", ndigits = 2, annotation.size = 4, annotation.color = "black", ...)
"plot"(x, layout = "rectangular", show.tip.label = TRUE, tip.label.size = 4, tip.label.hjust = -0.1, position = "branch", annotation = "marginal_subs", annotation.color = "black", annotation.size = 3, ...)
"plot"(x, layout = "rectangular", show.tip.label = TRUE, tip.label.size = 4, tip.label.hjust = -0.1, position = "branch", annotation = "subs", annotation.color = "black", annotation.size = 3, ...)
"plot"(x, layout = "rectangular", branch.length = "mlc.branch.length", show.tip.label = TRUE, tip.label.size = 4, tip.label.hjust = -0.1, position = "branch", annotation = "dN_vs_dS", annotation.size = 3, annotation.color = "black", ndigits = 2, ...)

Arguments

x
object
layout
layout
branch.length
branch length
show.tip.label
logical
tip.label.size
size of tip label
tip.label.hjust
hjust of tip.label
position
one of "branch" and "node"
annotation
one of get.fields(x)
ndigits
round digits
annotation.size
size of annotation
annotation.color
color of annotation
...
Additional argument list

Value

plot

Examples

Run this code
file <- system.file("extdata/BEAST", "beast_mcc.tree", package="ggtree")
beast <- read.beast(file)
plot(beast, annotation="length_0.95_HPD", branch.length="none") + theme_tree()

Run the code above in your browser using DataLab