View source: R/colorVariation.R
| colorVariation | R Documentation |
This function computes several measures of "color variation", typically associated with soil colors described in the Munsell system, using the CIE2000 dE (dE00) color contrast metric. The resulting dE00 summaries map closely to color differences as perceived by "average human vision".
colorVariation(m, method = c("frequency", "centroid", "reference"), ref = NULL)
m |
character vector of colors, described using the Munsell system e.g. |
method |
character, one of |
ref |
character, a reference color specified in the Munsell system when |
dE00 values are computed according to method:
'frequency': relative to most frequency color in m
'centroid': relative to centroid (CIELAB coordinates) of colors specified in m
'reference': relative to color specified in ref
numeric dE00 summary of color variation
m <- c('10YR 3/3', '10YR 4/4', '10YR 4/4', '5GY 6/8')
colorVariation(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.