Lattice visualization demonstrating subtractive mixtures of colors in Munsell notation and associated spectra.
plotColorMixture(
x,
w = rep(1, times = length(x))/length(x),
mixingMethod = c("exact", "reference"),
n = 1,
swatch.cex = 1.5,
label.cex = 0.85,
showMixedSpec = FALSE,
overlapFix = TRUE
)a lattice graphics object
vector of colors in Munsell notation, should not contain duplicates
vector of weights, can sum to any number
approach used to simulate a mixture:
exact: simulate a subtractive mixture of pigments, color conversion via CIE1931 color-matching functions (see mixMunsell())
reference : simulate a subtractive mixture of pigments, selecting n closest reference spectra, requires gower package
number of closest mixture candidates when mixingMethod = 'reference' (see mixMunsell()), results can be hard to interpret when n > 2
scaling factor for color swatch rectangle width and height, relative to label.cex, typically between 1 and 3
scaling factor for swatch labels
show weighted geometric mean (mixed) spectra as dotted line (only when mixingMethod = 'reference')
attempt to "fix" overlapping chip labels via fixOverlap(), using method = 'E'
D.E. Beaudette
If present, names attribute of x is used for the figure legend. See the expanded tutorial for examples.
mixMunsell()