ggevonet: ggevonet

View source: R/ggevonet.R

ggevonetR Documentation

ggevonet

Description

drawing phylogenetic tree from phylo object

Usage

ggevonet(tr, mapping = NULL, layout = "slanted", mrsd = NULL,
  as.Date = FALSE, yscale = "none", yscale_mapping = NULL,
  ladderize = FALSE, right = FALSE, branch.length = "branch.length",
  ndigits = NULL, min_crossing = TRUE, ...)

Arguments

tr

a evonet object

mapping

aes mapping

layout

one of 'rectangular', 'slanted'

mrsd

most recent sampling date

as.Date

logical whether using Date class in time tree

yscale

y scale

yscale_mapping

yscale mapping for category variable

ladderize

logical

right

logical

branch.length

variable for scaling branch, if 'none' draw cladogram

ndigits

number of digits to round numerical annotation variable

min_crossing

logical, rotate clades to minimize crossings

...

additional parameter

Value

tree

Author(s)

Klaus Schliep

See Also

evonet, ggtree

Examples

(enet <- ape::read.evonet(text='((a:2,(b:1)#H1:1):1,(#H1,c:1):2);'))
ggevonet(enet) + geom_tiplab()

KlausVigo/tanggle documentation built on April 16, 2022, 10:53 p.m.