Learn R Programming

PhylogeneticEM (version 1.0.1)

plot.equivalent_shifts: Plot all the equivalent solutions.

Description

plot.equivalent_shifts plots a representation of all the equivalent shifts allocations, with a representation of the shifts and their values, and a coloration of the branches in term of regimes.

Usage

# S3 method for equivalent_shifts
plot(x, trait = 1, numbering = FALSE,
  colors_tips = NULL, nbr_col = 3, gray_scale = FALSE, ...)

Arguments

x

an object of class equivalent_shifts, result of function equivalent_shifts

trait

(integer) the trait to be plotted, if multivariate. Default to 1.

numbering

wheter to number the solutions. Default to FALSE.

colors_tips

user-provided colors for the tips of the tree. A vector vector with as many colors as there are tips. Will be automatically computed if not provided.

nbr_col

the number of columns on which to display the plot. Default to 3.

gray_scale

if TRUE, a gray scale is used instead of colors. Default to FALSE.

...

further arguments to be passed to plot.phylo.

Value

A plot of the equivalent shifts allocations.

Details

This function uses function plot.phylo for the actual plotting of the trees.

See Also

equivalent_shifts, plot.phylo