simpleAxisPhylo: simpleAxisPhylo

Description Usage Arguments Value See Also Examples

Description

Adds an x-axis to the latest plotted tree with minor with custom tickmarks and minor tickmarks.

Usage

1
simpleAxisPhylo(at = NULL, minor = NULL, ...)

Arguments

at

a vector of points where to place major tickmarks

minor

NULL or numeric factor by which to divide intervals

...

further arguments passed to axis

Value

x-axis (side 1)

See Also

axis axisPhylo

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# simulate coalescent tree and plot
set.seed(1)
tr <- rcoal(10)
plot(tr)

# add default axis
simpleAxisPhylo()

# add custom scale
plot(tr)
trange <- c(0, max(branching.times(tr)))
trange <- pretty(trange)
x <- seq(trange[1], rev(trange)[1], (diff(trange)/2)[1])
simpleAxisPhylo(at=x, minor=2)

santiagosnchez/rBt documentation built on Aug. 9, 2021, 11:52 p.m.