Learn R Programming

tricolore (version 1.2.2)

TernaryLimits: Return the Limits of Ternary Coordinates

Description

Return the Limits of Ternary Coordinates

Usage

TernaryLimits(P, na.rm = TRUE)

Arguments

P

n by 3 matrix of ternary coordinates p1, p2, p3_i for i=1,...,n.

na.rm

Should NAs be removed? (default=TRUE)

Value

A 2 by 3 matrix of lower and upper limits for p1, p2 and p3.

Examples

Run this code
# NOT RUN {
P <- prop.table(matrix(runif(9), ncol = 3), 1)
tricolore:::TernaryLimits(P)

# }

Run the code above in your browser using DataLab