ColorMapSextant | R Documentation |
Return the sextant scheme colors for a matrix of ternary compositions.
ColorMapSextant(P, center, values)
P |
n by 3 matrix of ternary compositions [p1, p2, p3](i) for i=1, ..., n. |
center |
Ternary coordinates of the sextant meeting point. |
values |
6 element character vector of rgb-codes. |
An n row data frame giving, for each row of the input P, the input proportions [p1, p2, p3], sextant id (sextant) and the hex-rgb string of the mixed colors (rgb).
# NOTE: only intended for internal use and not part of the API
P <- prop.table(matrix(runif(9), ncol = 3), 1)
tricolore:::ColorMapSextant(P, c(1/3, 1/3, 1/3),
c('#01A0C6', '#B8B3D8', '#F11D8C', '#FFB3B3',
'#FFFF00', '#B3DCC3'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.