Lattice visualization demonstrating subtractive mixtures of colors in Munsell notation and associated spectra.
plotColorMixture(
x,
w = rep(1, times = length(x))/length(x),
n = 1,
swatch.cex = 6,
label.cex = 0.85,
showMixedSpec = FALSE,
overlapFix = TRUE
)
vector of colors in Munsell notation, should not contain duplicates
vector of proportions, can sum to any number
number of closest mixture candidates (see mixMunsell
), results can be hard to interpret
scaling factor for color swatch
scaling factor for swatch labels
show weighted geometric mean (mixed) spectra as dotted line
attempt to "fix" overlapping chip labels via fixOverlap
lattice
graphics object