Until then, be sure not to pass in Munsell (hue, value, chroma) as factors. The next version of plyr should address this problem.
If return_triplets is TRUE, then a dataframe (of sample length as input) of r,g,b values is returned.įor RGB to Munsell conversion, a dataframe (NA-padded) of hue, value, chroma, and Euclidean distance to nearest matching color is returned.Īs of plyr 1.6 (CRAN), there are cases when this function will fail ( ). Valueįor Munsell to RGB conversion, a vector of R colors is returned that is the same length as the input data. Both functions will pad output with NA if there are any NA present in the inputs. These functions generalizes to vectorized usage, as long as the length of each argument is the same.
Should the function return raw RGB triplets instead of an R colorĪ ame or matrix object containing color-space coordinates: Munsell2rgb(the_hue, the_value, the_chroma, alpha=1,Ī vector of one or more more hues, upper-caseĪlpha channel value (for transparency effects) R: Convert Munsell Notation to and from RGB color coordinates munsell2rgb Ĭonvert Munsell Notation to and from RGB color coordinatesĬolor conversion based on a look-up table of common soil colors.