colorContrast {aqp}R Documentation

Metrics of Contrast Suitable for Comparing Soil Colors

Description

Pair-wise comparisons of Munsell color specifications, based on the NCSS color contrast classes and CIE delta-E 2000 metric.

Usage

colorContrast(m1, m2)

Arguments

m1

vector of Munsell colors ('10YR 3/3')

m2

vector of Munsell colors ('10YR 3/6')

Details

This function is fully vectorized but expects input to be of the same length. Use expand.grid to generate suitable input from 1:many or many:1 type comparisons. See this tutorial for an expanded discussion and more examples.

Value

A data.frame with the following columns:

Note

delta-E00 is computed by the farver package.

Author(s)

D.E. Beaudette

References

  1. https://en.wikipedia.org/wiki/Color_difference

  2. Soil Survey Technical Note 2

See Also

colorContrastPlot, huePosition

Examples


# two sets of colors to compare
m1 <- c('10YR 6/3', '7.5YR 3/3', '10YR 2/2', '7.5YR 3/4')
m2 <- c('5YR 3/4', '7.5YR 4/4', '2.5YR 2/2', '7.5YR 6/3')

# contrast metrics
colorContrast(m1, m2)

# adjacent chips
colorContrast('10YR 3/3', '10YR 3/4')
colorContrast('10YR 3/3', '7.5YR 3/3')

# highly contrasting colors
# http://colour.granjow.net/fabercastell-polychromos.html
colorContrastPlot('10B 4/13', '10YR 10/15',
labels = c('helioblue-reddish', 'light cadmium yellow')
)


[Package aqp version 1.31 Index]