Learn R Programming

ape (version 5.8-1)

kronoviz: 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)

Value

NULL

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.

Author

Emmanuel Paradis, Klaus Schliep

Details

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

See Also

plot.phylo

Examples

Run this code
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))

Run the code above in your browser using DataLab