simplexCoords: Convert 3-d coordinates to 2-d probability simplex...

simplexCoordsR Documentation

Convert 3-d coordinates to 2-d probability simplex coordinates

Description

Convert from 3-d Cartesian coordinates to 2-d coordinates suitable for plotting in the probability simplex.

Usage

simplexCoords(v)

Arguments

v

vector of 3 non-negative numbers, not summing to 0

Details

Applies an affine coordinate trandformation that maps the centroid (1/3,1/3,1/3) to the origin (0,0), and rescales so that the line segments between (1,0,0), (0,1,0), and (0,0,1) are mapped to segments of length 1.

An input vector v is first normalized so its component sum to 1 before the map is applied.

Value

2-d coordinates to plot normalized point in simplex

See Also

simplexLabels, simplexPoint, simplexPrepare, simplexSegment, simplexText

Examples

     simplexCoords(c(15,65,20))


MSCquartets documentation built on Oct. 31, 2024, 1:08 a.m.