Learn R Programming

aqp (version 1.29)

plotColorMixture: Visualize Spectral Mixing of Munsell Colors

Description

Lattice visualization demonstrating subtractive mixtures of colors in Munsell notation and associated spectra.

Usage

plotColorMixture(
  x,
  w = rep(1, times = length(x))/length(x),
  n = 1,
  swatch.cex = 6,
  label.cex = 0.85,
  showMixedSpec = FALSE,
  overlapFix = TRUE
)

Arguments

x

vector of colors in Munsell notation, should not contain duplicates

w

vector of proportions, can sum to any number

n

number of closest mixture candidates (see mixMunsell), results can be hard to interpret

swatch.cex

scaling factor for color swatch

label.cex

scaling factor for swatch labels

showMixedSpec

show weighted geometric mean (mixed) spectra as dotted line

overlapFix

attempt to "fix" overlapping chip labels via fixOverlap

Value

lattice graphics object