Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

getClosestMunsellChip

Get Approximate Munsell Chip


Description

Non-standard Munsell notation (e.g. '7.9YR 2.7/2.0') can be matched (nearest-neighbor, no interpolation) to the closest color within the munsell sRGB/CIELAB look-up table via getClosestMunsellChip(). A more accurate estimate of sRGB values from non-standard notation can be achieved with the munsellinterpol package.

Usage

getClosestMunsellChip(munsellColor, convertColors = TRUE, ...)

Arguments

munsellColor

character vector of strings containing Munsell notation of color, e.g. '10YR 4/3'

convertColors

logical, should parsed Munsell colors be converted into sRGB values

...

further arguments to munsell2rgb

Value

a data.frame when convertColors=TRUE, otherwise character vector

Examples

# convert a non-standard color to closest "chip" in `munsell` look-up table
getClosestMunsellChip('7.9YR 2.7/2.0', convertColors = FALSE)
# convert directly to R color
getClosestMunsellChip('7.9YR 2.7/2.0')

aqp

Algorithms for Quantitative Pedology

v1.29
GPL (>= 3)
Authors
Dylan Beaudette [aut, cre], Pierre Roudier [aut, ctb], Andrew Brown [aut, ctb]
Initial release
2021-04-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.