Learn R Programming

gpyramid (version 0.0.1)

allCrosses: Generate all crosses from given parent set.

Description

Generate all crosses from given parent set.

Usage

allCrosses(n, line_id)

Value

List of crossing procedure. The output value is defined by "multiPhylo" class.

Arguments

n

Number of parents

line_id

Character vector of parent names

References

K.P. Schliep (2011) phangorn: phylogenetic analysis in R

Examples

Run this code
n <- 3
line_id <- c("x1", "x2", "x7")
rslt <- allCrosses(n, line_id)
plot(rslt[[1]])
plot(rslt[[2]])
plot(rslt[[3]])

Run the code above in your browser using DataLab