ColorMapSextant: Sextant Encoding of Ternary Composition

Description Usage Arguments Value Examples

Description

Return the sextant scheme colors for a matrix of ternary compositions.

Usage

1
ColorMapSextant(P, center, values)

Arguments

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.

Value

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).

Examples

1
2
3
4
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'))

tricolore documentation built on April 28, 2020, 5:10 p.m.