Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

Author(s)

D.E. Beaudette


aqp

Algorithms for Quantitative Pedology

v1.29
GPL (>= 3)
Authors
Dylan Beaudette [aut, cre], Pierre Roudier [aut, ctb], Andrew Brown [aut, ctb]
Initial release
2021-04-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.