Lattice visualization demonstrating subtractive mixtures of colors in Munsell notation and associated spectra.
Arguments
- x
vector of colors in Munsell notation, should not contain duplicates
- w
vector of weights, can sum to any number
- mixingMethod
approach used to simulate a mixture:
exact
: simulate a subtractive mixture of pigments, color conversion via CIE1931 color-matching functions (seemixMunsell()
)reference
: simulate a subtractive mixture of pigments, selectingn
closest reference spectra, requiresgower
package
- n
number of closest mixture candidates when
mixingMethod = 'reference'
(seemixMunsell()
), results can be hard to interpret whenn > 2
- swatch.cex
scaling factor for color swatch rectangle width and height, relative to
label.cex
, typically between 1 and 3- label.cex
scaling factor for swatch labels
- showMixedSpec
show weighted geometric mean (mixed) spectra as dotted line (only when
mixingMethod = 'reference'
)- overlapFix
attempt to "fix" overlapping chip labels via
fixOverlap()
, usingmethod = 'E'
Details
If present, names
attribute of x
is used for the figure legend. See the expanded tutorial for examples.