View source: R/plotColorMixture.R
plotColorMixture | R Documentation |
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
)
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:
|
n |
number of closest mixture candidates when |
swatch.cex |
scaling factor for color swatch rectangle width and height, relative to |
label.cex |
scaling factor for swatch labels |
showMixedSpec |
show weighted geometric mean (mixed) spectra as dotted line (only when |
overlapFix |
attempt to "fix" overlapping chip labels via |
If present, names
attribute of x
is used for the figure legend. See the expanded tutorial for examples.
a lattice
graphics object
D.E. Beaudette
mixMunsell()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.