simplexCoords | R Documentation |
Convert from 3-d Cartesian coordinates to 2-d coordinates suitable for plotting in the probability simplex.
simplexCoords(v)
v |
vector of 3 non-negative numbers, not summing to 0 |
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.
2-d coordinates to plot normalized point in simplex
simplexLabels
,
simplexPoint
,
simplexPrepare
,
simplexSegment
,
simplexText
simplexCoords(c(15,65,20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.