# NOT RUN {
# use default threshold
equivalent_chip_lut <- .makeEquivalentMunsellLUT()
# inspect the first 10 chips, it seems to work!
lapply(equivalent_chip_lut[1:10], function(i) munsell[i,])
# lets see some info on the number of chips per chip
nchipsper <- sapply(equivalent_chip_lut, length)
# top 10 are very high chroma chips with over 70 chips "identical"
nchipsper[order(nchipsper, decreasing = TRUE)[1:10]]
# look at distribution
plot(density(nchipsper))
# median is 5 -- Q: is this true of the range of Munsell colors typically used for soils?
quantile(nchipsper)
# double the default threshold
doubletest <- sapply(.makeEquivalentMunsellLUT(threshold = 0.002), length)
lines(density(doubletest), lty=2)
# apprx. doubles the number of chips per chip in IQR
quantile(doubletest)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab