kronoviz: Plot Multiple Chronograms on the Same Scale

View source: R/plot.phylo.R

kronovizR Documentation

Plot Multiple Chronograms on the Same Scale

Description

The main argument is a list of (rooted) trees which are plotted on the same scale.

Usage

kronoviz(x, layout = length(x), horiz = TRUE, ...,
         direction = ifelse(horiz, "rightwards", "upwards"), side = 2)

Arguments

x

a list of (rooted) trees of class "phylo".

layout

an integer giving the number of trees plotted simultaneously; by default all.

horiz

a logical specifying whether the trees should be plotted rightwards (the default) or upwards.

...

further arguments passed to plot.phylo.

direction

a character string specifying the direction of the tree. Four values are possible: "rightwards" (the default), "leftwards", "upwards", and "downwards".

side

Where to put the axis, see example.

Details

The size of the individual plots is proportional to the size of the trees.

Value

NULL

Author(s)

Emmanuel Paradis, Klaus Schliep

See Also

plot.phylo

Examples

TR <- replicate(10, rcoal(sample(11:20, size = 1)), simplify = FALSE)
kronoviz(TR)
kronoviz(TR, side = 1)
kronoviz(TR, horiz = FALSE, type = "c", show.tip.label = FALSE)
kronoviz(TR, direction = "d", side = c(1,2))

ape documentation built on April 3, 2025, 7:53 p.m.