diff --git a/404.html b/404.html index 37eca7a1..e407b6f2 100644 --- a/404.html +++ b/404.html @@ -118,7 +118,7 @@
NCSP()
-Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/articles/Munsell-color-conversion.html b/articles/Munsell-color-conversion.html
index 1d561d4f..c4ec2f1b 100644
--- a/articles/Munsell-color-conversion.html
+++ b/articles/Munsell-color-conversion.html
@@ -208,7 +208,7 @@ Examples
-Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/articles/NCSP.html b/articles/NCSP.html
index 3c3a7aed..3d7c237b 100644
--- a/articles/NCSP.html
+++ b/articles/NCSP.html
@@ -271,7 +271,7 @@ References
-Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/articles/aqp-overview.html b/articles/aqp-overview.html
index cca6b38e..e9a44a9f 100644
--- a/articles/aqp-overview.html
+++ b/articles/aqp-overview.html
@@ -867,7 +867,7 @@ Example Data
-Site built with pkgdown 2.1.0.
+Site built with pkgdown 2.1.1.
diff --git a/articles/index.html b/articles/index.html
index 9279f524..e36c599f 100644
--- a/articles/index.html
+++ b/articles/index.html
@@ -102,7 +102,7 @@ All vignettes
diff --git a/articles/label-placement.html b/articles/label-placement.html
index 6d656d24..6fcdf149 100644
--- a/articles/label-placement.html
+++ b/articles/label-placement.html
@@ -640,7 +640,7 @@ Learning More about the SANN Alg
diff --git a/articles/label-placement_files/figure-html/unnamed-chunk-9-1.png b/articles/label-placement_files/figure-html/unnamed-chunk-9-1.png
index ef923131..3a22ab26 100644
Binary files a/articles/label-placement_files/figure-html/unnamed-chunk-9-1.png and b/articles/label-placement_files/figure-html/unnamed-chunk-9-1.png differ
diff --git a/articles/label-placement_files/figure-html/unnamed-chunk-9-2.png b/articles/label-placement_files/figure-html/unnamed-chunk-9-2.png
index 4f378e09..80b13a30 100644
Binary files a/articles/label-placement_files/figure-html/unnamed-chunk-9-2.png and b/articles/label-placement_files/figure-html/unnamed-chunk-9-2.png differ
diff --git a/articles/label-placement_files/figure-html/unnamed-chunk-9-3.png b/articles/label-placement_files/figure-html/unnamed-chunk-9-3.png
index ad660a90..29dacc7a 100644
Binary files a/articles/label-placement_files/figure-html/unnamed-chunk-9-3.png and b/articles/label-placement_files/figure-html/unnamed-chunk-9-3.png differ
diff --git a/articles/label-placement_files/figure-html/unnamed-chunk-9-4.png b/articles/label-placement_files/figure-html/unnamed-chunk-9-4.png
index 21d2d912..40c3b6a2 100644
Binary files a/articles/label-placement_files/figure-html/unnamed-chunk-9-4.png and b/articles/label-placement_files/figure-html/unnamed-chunk-9-4.png differ
diff --git a/articles/label-placement_files/figure-html/unnamed-chunk-9-5.png b/articles/label-placement_files/figure-html/unnamed-chunk-9-5.png
index 1d9a2cfc..b3d9550d 100644
Binary files a/articles/label-placement_files/figure-html/unnamed-chunk-9-5.png and b/articles/label-placement_files/figure-html/unnamed-chunk-9-5.png differ
diff --git a/articles/label-placement_files/figure-html/unnamed-chunk-9-6.png b/articles/label-placement_files/figure-html/unnamed-chunk-9-6.png
index 573a402e..bee764a4 100644
Binary files a/articles/label-placement_files/figure-html/unnamed-chunk-9-6.png and b/articles/label-placement_files/figure-html/unnamed-chunk-9-6.png differ
diff --git a/articles/missing-data.html b/articles/missing-data.html
index 6b23f915..5abeb649 100644
--- a/articles/missing-data.html
+++ b/articles/missing-data.html
@@ -252,7 +252,7 @@ Missing Data
diff --git a/articles/new-in-aqp-2.html b/articles/new-in-aqp-2.html
index d4e859b2..562647f7 100644
--- a/articles/new-in-aqp-2.html
+++ b/articles/new-in-aqp-2.html
@@ -307,7 +307,7 @@ Incremental
diff --git a/authors.html b/authors.html
index 70034c99..eed6340b 100644
--- a/authors.html
+++ b/authors.html
@@ -127,7 +127,7 @@ Citation
diff --git a/index.html b/index.html
index 76c7e8bc..c7da26f0 100644
--- a/index.html
+++ b/index.html
@@ -294,7 +294,7 @@ Dev status
diff --git a/news/index.html b/news/index.html
index 9dd311d3..0279c53a 100644
--- a/news/index.html
+++ b/news/index.html
@@ -76,11 +76,14 @@ Changelog
-aqp 2.0.4 (2024-07-30)2024-07-30
+aqp 2.0.4 (2024-10-04)2024-07-30
- CRAN release
- ragged bottom lines in
plotSPC()
now adjusted as function of number of profiles and device width
- additional metadata from
plotSPC()
saved to last_spc_plot
in aqp.env
+- added Munsell values of 8.5 and 9.5 to Munsell LUT and (interpolated) reference spectra (#318)
+-
+
munsell2rgb()
now safely selects the closest Munsell value and chroma to those available in the package LUT
diff --git a/pkgdown.yml b/pkgdown.yml
index 97122123..42a5e083 100644
--- a/pkgdown.yml
+++ b/pkgdown.yml
@@ -1,5 +1,5 @@
pandoc: 3.1.11
-pkgdown: 2.1.0
+pkgdown: 2.1.1
pkgdown_sha: ~
articles:
aqp-overview: aqp-overview.html
@@ -9,4 +9,4 @@ articles:
Munsell-color-conversion: Munsell-color-conversion.html
NCSP: NCSP.html
new-in-aqp-2: new-in-aqp-2.html
-last_built: 2024-09-06T16:28Z
+last_built: 2024-10-04T22:32Z
diff --git a/reference/GHL.html b/reference/GHL.html
index 5a0c6138..6c85247b 100644
--- a/reference/GHL.html
+++ b/reference/GHL.html
@@ -139,7 +139,7 @@ Examples
diff --git a/reference/HzDepthLogicSubset.html b/reference/HzDepthLogicSubset.html
index dc0a5172..b447f8eb 100644
--- a/reference/HzDepthLogicSubset.html
+++ b/reference/HzDepthLogicSubset.html
@@ -117,7 +117,7 @@ Note
diff --git a/reference/L1_profiles.html b/reference/L1_profiles.html
index b2fdee42..e0df84b3 100644
--- a/reference/L1_profiles.html
+++ b/reference/L1_profiles.html
@@ -153,7 +153,7 @@ References
diff --git a/reference/NCSP.html b/reference/NCSP.html
index 247dbdee..89d4ab38 100644
--- a/reference/NCSP.html
+++ b/reference/NCSP.html
@@ -254,7 +254,7 @@ Author
diff --git a/reference/ROSETTA.centroids.html b/reference/ROSETTA.centroids.html
index cd4aa470..4a8ea242 100644
--- a/reference/ROSETTA.centroids.html
+++ b/reference/ROSETTA.centroids.html
@@ -217,7 +217,7 @@ Examples
diff --git a/reference/SANN_1D.html b/reference/SANN_1D.html
index 9d3e6895..8957eb62 100644
--- a/reference/SANN_1D.html
+++ b/reference/SANN_1D.html
@@ -244,7 +244,7 @@ Examples
diff --git a/reference/SPC.with.overlap.html b/reference/SPC.with.overlap.html
index 111fd5c7..0e120fa2 100644
--- a/reference/SPC.with.overlap.html
+++ b/reference/SPC.with.overlap.html
@@ -101,7 +101,7 @@ Format
diff --git a/reference/SoilProfileCollection-class.html b/reference/SoilProfileCollection-class.html
index 1e872335..9116b7ab 100644
--- a/reference/SoilProfileCollection-class.html
+++ b/reference/SoilProfileCollection-class.html
@@ -333,7 +333,7 @@ Examples
diff --git a/reference/SoilProfileCollection-crs.html b/reference/SoilProfileCollection-crs.html
index 788c4f15..a58b7638 100644
--- a/reference/SoilProfileCollection-crs.html
+++ b/reference/SoilProfileCollection-crs.html
@@ -137,7 +137,7 @@ See also
diff --git a/reference/SoilProfileCollection-plotting-methods-1.png b/reference/SoilProfileCollection-plotting-methods-1.png
index dd198539..3904c013 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-1.png and b/reference/SoilProfileCollection-plotting-methods-1.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods-10.png b/reference/SoilProfileCollection-plotting-methods-10.png
index 98827a3b..5b522f46 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-10.png and b/reference/SoilProfileCollection-plotting-methods-10.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods-11.png b/reference/SoilProfileCollection-plotting-methods-11.png
index de3f2c41..76f71fbb 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-11.png and b/reference/SoilProfileCollection-plotting-methods-11.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods-12.png b/reference/SoilProfileCollection-plotting-methods-12.png
index 2e4bc04c..9c9bd172 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-12.png and b/reference/SoilProfileCollection-plotting-methods-12.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods-13.png b/reference/SoilProfileCollection-plotting-methods-13.png
index 45ff69c0..443e56e0 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-13.png and b/reference/SoilProfileCollection-plotting-methods-13.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods-14.png b/reference/SoilProfileCollection-plotting-methods-14.png
index 10a51f66..3e27bc1f 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-14.png and b/reference/SoilProfileCollection-plotting-methods-14.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods-15.png b/reference/SoilProfileCollection-plotting-methods-15.png
index 90fd105c..d5e5772d 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-15.png and b/reference/SoilProfileCollection-plotting-methods-15.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods-16.png b/reference/SoilProfileCollection-plotting-methods-16.png
index b7097e4b..e7f96881 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-16.png and b/reference/SoilProfileCollection-plotting-methods-16.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods-2.png b/reference/SoilProfileCollection-plotting-methods-2.png
index b555a503..a178a3de 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-2.png and b/reference/SoilProfileCollection-plotting-methods-2.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods-3.png b/reference/SoilProfileCollection-plotting-methods-3.png
index cf0bdbe6..071cbff7 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-3.png and b/reference/SoilProfileCollection-plotting-methods-3.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods-4.png b/reference/SoilProfileCollection-plotting-methods-4.png
index 7b423679..266d0178 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-4.png and b/reference/SoilProfileCollection-plotting-methods-4.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods-5.png b/reference/SoilProfileCollection-plotting-methods-5.png
index 92f2e1ae..b3f6f6df 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-5.png and b/reference/SoilProfileCollection-plotting-methods-5.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods-6.png b/reference/SoilProfileCollection-plotting-methods-6.png
index 5785c12f..aeb1a1e4 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-6.png and b/reference/SoilProfileCollection-plotting-methods-6.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods-7.png b/reference/SoilProfileCollection-plotting-methods-7.png
index 62d93b2e..fb53449a 100644
Binary files a/reference/SoilProfileCollection-plotting-methods-7.png and b/reference/SoilProfileCollection-plotting-methods-7.png differ
diff --git a/reference/SoilProfileCollection-plotting-methods.html b/reference/SoilProfileCollection-plotting-methods.html
index 577d2b01..5401ee73 100644
--- a/reference/SoilProfileCollection-plotting-methods.html
+++ b/reference/SoilProfileCollection-plotting-methods.html
@@ -566,8 +566,8 @@ Examples
fixLabelCollisions = TRUE,
name.style = 'center-center'
)
-#> depth axis is disabled when more than 1 unique y offsets are supplied
+#> depth axis is disabled when more than 1 unique y offsets are supplied
@@ -586,8 +586,8 @@ Examples
hz.depths = TRUE,
name.style = 'center-center'
)
-#> depth axis is disabled when more than 1 unique y offsets are supplied
+#> depth axis is disabled when more than 1 unique y offsets are supplied
# align / adjust relative x positions
@@ -627,7 +627,7 @@ Examples
diff --git a/reference/SoilTextureLevels.html b/reference/SoilTextureLevels.html
index c18191fd..a857cfd9 100644
--- a/reference/SoilTextureLevels.html
+++ b/reference/SoilTextureLevels.html
@@ -146,7 +146,7 @@ Examples
diff --git a/reference/accumulateDepths-1.png b/reference/accumulateDepths-1.png
index 21648f2e..1e580514 100644
Binary files a/reference/accumulateDepths-1.png and b/reference/accumulateDepths-1.png differ
diff --git a/reference/accumulateDepths.html b/reference/accumulateDepths.html
index 12520477..33cfa212 100644
--- a/reference/accumulateDepths.html
+++ b/reference/accumulateDepths.html
@@ -226,7 +226,7 @@ Examples
diff --git a/reference/addBracket-1.png b/reference/addBracket-1.png
index 503134e4..61b16429 100644
Binary files a/reference/addBracket-1.png and b/reference/addBracket-1.png differ
diff --git a/reference/addBracket-2.png b/reference/addBracket-2.png
index ab22f135..e842a7b7 100644
Binary files a/reference/addBracket-2.png and b/reference/addBracket-2.png differ
diff --git a/reference/addBracket-3.png b/reference/addBracket-3.png
index 048752be..2ccb5ac3 100644
Binary files a/reference/addBracket-3.png and b/reference/addBracket-3.png differ
diff --git a/reference/addBracket.html b/reference/addBracket.html
index d31cc353..2b623f26 100644
--- a/reference/addBracket.html
+++ b/reference/addBracket.html
@@ -231,7 +231,7 @@ Examples
diff --git a/reference/addDiagnosticBracket.html b/reference/addDiagnosticBracket.html
index 235592dd..4201093c 100644
--- a/reference/addDiagnosticBracket.html
+++ b/reference/addDiagnosticBracket.html
@@ -148,7 +148,7 @@ Author
diff --git a/reference/addVolumeFraction.html b/reference/addVolumeFraction.html
index 2aa679c0..6ed8d895 100644
--- a/reference/addVolumeFraction.html
+++ b/reference/addVolumeFraction.html
@@ -149,7 +149,7 @@ Author
diff --git a/reference/aggregateColor.html b/reference/aggregateColor.html
index 32f9a8bc..e3d4f74d 100644
--- a/reference/aggregateColor.html
+++ b/reference/aggregateColor.html
@@ -182,19 +182,19 @@ Examples
#> .. ..$ munsell : chr [1:3] "7.5YR 2/2" "10YR 2/2" "7.5YR 3/2"
#> .. ..$ .id : Factor w/ 4 levels "O","A","B","C": 1 1 1
#> ..$ A:'data.frame': 9 obs. of 5 variables:
-#> .. ..$ soil_color: chr [1:9] "#3A2D20FF" "#564436FF" "#745C40FF" "#3C2C22FF" ...
+#> .. ..$ soil_color: chr [1:9] "#3A2D20FF" "#564436FF" "#745C41FF" "#3C2C22FF" ...
#> .. ..$ weight : num [1:9] 0.3515 0.2342 0.1067 0.0754 0.0621 ...
#> .. ..$ n.hz : int [1:9] 4 3 1 2 1 1 1 1 1
#> .. ..$ munsell : chr [1:9] "10YR 2/2" "7.5YR 3/2" "10YR 4/3" "7.5YR 2/2" ...
#> .. ..$ .id : Factor w/ 4 levels "O","A","B","C": 2 2 2 2 2 2 2 2 2
#> ..$ B:'data.frame': 14 obs. of 5 variables:
-#> .. ..$ soil_color: chr [1:14] "#564436FF" "#745C40FF" "#544535FF" "#58432CFF" ...
+#> .. ..$ soil_color: chr [1:14] "#564436FF" "#745C41FF" "#544535FF" "#58432CFF" ...
#> .. ..$ weight : num [1:14] 0.2842 0.2033 0.1265 0.0821 0.0552 ...
#> .. ..$ n.hz : int [1:14] 5 3 3 2 2 2 2 1 1 1 ...
#> .. ..$ munsell : chr [1:14] "7.5YR 3/2" "10YR 4/3" "10YR 3/2" "10YR 3/3" ...
#> .. ..$ .id : Factor w/ 4 levels "O","A","B","C": 3 3 3 3 3 3 3 3 3 3 ...
#> ..$ C:'data.frame': 9 obs. of 5 variables:
-#> .. ..$ soil_color: chr [1:9] "#564436FF" "#725C50FF" "#8E775BFF" "#795B36FF" ...
+#> .. ..$ soil_color: chr [1:9] "#564436FF" "#725C50FF" "#8E775AFF" "#795B36FF" ...
#> .. ..$ weight : num [1:9] 0.279 0.152 0.131 0.131 0.089 ...
#> .. ..$ n.hz : int [1:9] 3 2 2 2 1 1 1 1 1
#> .. ..$ munsell : chr [1:9] "7.5YR 3/2" "5YR 4/2" "10YR 5/3" "10YR 4/4" ...
@@ -205,7 +205,7 @@ Examples
#> ..$ value : num [1:4] 2 3 3 4
#> ..$ chroma : num [1:4] 2 2 3 3
#> ..$ munsell : chr [1:4] "7.5YR 2/2" "7.5YR 3/2" "7.5YR 3/3" "7.5YR 4/3"
-#> ..$ distance: num [1:4] 1.16 2.2 2.74 2.88
+#> ..$ distance: num [1:4] 1.16 2.19 2.75 2.85
#> ..$ col : chr [1:4] "#3C2C22FF" "#564436FF" "#5B422EFF" "#775B44FF"
#> ..$ n : int [1:4] 3 9 14 9
#> ..$ H : num [1:4] 1.23 2.66 3.14 2.91
@@ -265,7 +265,7 @@ Examples
diff --git a/reference/aggregateSoilDepth.html b/reference/aggregateSoilDepth.html
index 705e4c44..e5e86ce0 100644
--- a/reference/aggregateSoilDepth.html
+++ b/reference/aggregateSoilDepth.html
@@ -166,7 +166,7 @@ Examples
diff --git a/reference/alignTransect-1.png b/reference/alignTransect-1.png
index 423cd5a2..bc79d5e1 100644
Binary files a/reference/alignTransect-1.png and b/reference/alignTransect-1.png differ
diff --git a/reference/alignTransect.html b/reference/alignTransect.html
index 8e1ba73d..faff4113 100644
--- a/reference/alignTransect.html
+++ b/reference/alignTransect.html
@@ -163,7 +163,7 @@ Examples
diff --git a/reference/allocate-1.png b/reference/allocate-1.png
index 3c7b13d1..3d148bda 100644
Binary files a/reference/allocate-1.png and b/reference/allocate-1.png differ
diff --git a/reference/allocate-2.png b/reference/allocate-2.png
index 95d175a6..a8172c80 100644
Binary files a/reference/allocate-2.png and b/reference/allocate-2.png differ
diff --git a/reference/allocate.html b/reference/allocate.html
index 71a8ddbd..318c5e27 100644
--- a/reference/allocate.html
+++ b/reference/allocate.html
@@ -325,7 +325,7 @@ Examples
diff --git a/reference/aqp-package.html b/reference/aqp-package.html
index 733c9ab4..40f08628 100644
--- a/reference/aqp-package.html
+++ b/reference/aqp-package.html
@@ -129,7 +129,7 @@ Author
diff --git a/reference/aqp_df_class.html b/reference/aqp_df_class.html
index c43ee33b..d40b7a8f 100644
--- a/reference/aqp_df_class.html
+++ b/reference/aqp_df_class.html
@@ -113,7 +113,7 @@ Arguments
diff --git a/reference/argillic.clay.increase.depth.html b/reference/argillic.clay.increase.depth.html
index 85bb15cd..5bcf8738 100644
--- a/reference/argillic.clay.increase.depth.html
+++ b/reference/argillic.clay.increase.depth.html
@@ -145,7 +145,7 @@ Examples
diff --git a/reference/barron.torrent.redness.LAB.html b/reference/barron.torrent.redness.LAB.html
index 0f1982d4..fd33445d 100644
--- a/reference/barron.torrent.redness.LAB.html
+++ b/reference/barron.torrent.redness.LAB.html
@@ -125,7 +125,7 @@ Author
diff --git a/reference/bootstrapSoilTexture-1.png b/reference/bootstrapSoilTexture-1.png
index bd317e04..cd8ac8cf 100644
Binary files a/reference/bootstrapSoilTexture-1.png and b/reference/bootstrapSoilTexture-1.png differ
diff --git a/reference/bootstrapSoilTexture.html b/reference/bootstrapSoilTexture.html
index 60046504..8e11f751 100644
--- a/reference/bootstrapSoilTexture.html
+++ b/reference/bootstrapSoilTexture.html
@@ -205,7 +205,7 @@ Examples
diff --git a/reference/brierScore.html b/reference/brierScore.html
index eebbe105..3672a027 100644
--- a/reference/brierScore.html
+++ b/reference/brierScore.html
@@ -173,7 +173,7 @@ Examples
diff --git a/reference/buntley.westin.index.html b/reference/buntley.westin.index.html
index beedda52..7b2a9e25 100644
--- a/reference/buntley.westin.index.html
+++ b/reference/buntley.westin.index.html
@@ -121,7 +121,7 @@ Author
diff --git a/reference/ca630.html b/reference/ca630.html
index c35b339e..b870c8f5 100644
--- a/reference/ca630.html
+++ b/reference/ca630.html
@@ -285,7 +285,7 @@ Examples
diff --git a/reference/checkHzDepthLogic.html b/reference/checkHzDepthLogic.html
index a5790ddc..05e662a2 100644
--- a/reference/checkHzDepthLogic.html
+++ b/reference/checkHzDepthLogic.html
@@ -184,7 +184,7 @@ Examples
diff --git a/reference/checkSPC.html b/reference/checkSPC.html
index 0d5eb915..9e8e0abf 100644
--- a/reference/checkSPC.html
+++ b/reference/checkSPC.html
@@ -124,7 +124,7 @@ Author
diff --git a/reference/coercion-methods.html b/reference/coercion-methods.html
index a4645144..25f0a319 100644
--- a/reference/coercion-methods.html
+++ b/reference/coercion-methods.html
@@ -282,7 +282,7 @@ Examples
diff --git a/reference/col2Munsell.html b/reference/col2Munsell.html
index 1e1ba542..5937427c 100644
--- a/reference/col2Munsell.html
+++ b/reference/col2Munsell.html
@@ -126,9 +126,9 @@ Examples
# vector of named R colors
col2Munsell(c('red', 'green', 'blue'))
#> hue value chroma sigma
-#> 1 10R 5 26 5.334215e-14
-#> 2 10GY 9 20 1.111449e-14
-#> 3 5PB 1 44 0.000000e+00
+#> 1 10R 5.0 26 5.334215e-14
+#> 2 10GY 8.5 22 1.111449e-14
+#> 3 5PB 1.0 44 0.000000e+00
# sRGB matrix in the range of 0-255
col2Munsell(cbind(255, 0, 0))
@@ -157,15 +157,15 @@ Examples
col2Munsell(
cbind(0.8240707, 0.7856834, 0.7541048)
)
-#> hue value chroma sigma
-#> 1 7.5YR 8 1 3.98727e-06
+#> hue value chroma sigma
+#> 1 7.5YR 8 1 0.7104182
# 7.5YR 8/1 in sRGB {0, 255}
col2Munsell(
cbind(0.8240707, 0.7856834, 0.7541048) * 255
)
-#> hue value chroma sigma
-#> 1 7.5YR 8 1 3.98727e-06
+#> hue value chroma sigma
+#> 1 7.5YR 8 1 0.7104182
# multple colors in CIELAB
col2Munsell(
@@ -198,17 +198,17 @@ Examples
# result is a data.frame of sRGB {0, 1}
color
#> r g b
-#> 1 0.3755239 0.2554937 0.09112035
+#> 1 0.3754983 0.2555129 0.09093377
#> 2 0.6613729 0.4212891 0.30856225
-#> 3 0.2998508 0.2205216 0.18365313
+#> 3 0.2897926 0.2154340 0.18009210
# back-transform sRGB -> closest Munsell color
# sigma is the dE00 color contrast metric
col2Munsell(color, space = 'sRGB')
#> hue value chroma sigma
-#> 1 10YR 3.0 5 1.473991e-15
+#> 1 10YR 3.0 5 4.410418e-14
#> 2 2.5YR 5.0 6 2.796756e-15
-#> 3 5YR 2.5 2 3.660163e-14
+#> 3 5YR 2.5 2 3.177668e-14
@@ -224,7 +224,7 @@ R/similarMunsellChips.R
+ Source: R/equivalentMunsellChips.R
equivalentMunsellChips.Rd
Uses a pre-calculated lookup list (equivalent_munsell
) based on pair-wise CIE2000 contrast (dE00
) of LAB color with D65 illuminant for all whole value/chroma "chips" in the aqp::munsell
data set.
The intention is to identify Munsell chips that may be "functionally equivalent" to some other given whole value/chroma chip elsewhere in the Munsell color space – as discretized in the aqp::munsell
data table. This basic assumption needs to be validated against your end goal: probably by visual inspection of some or all of the resulting sets. See colorContrast
and colorContrastPlot
.
"Equivalent" chips table are based (fairly arbitrarily) on the 0.001 probability level of dE00 (default Type 7 quantile
) within the upper triangle of the 8467x8467 contrast matrix. This corresponds to a dE00
contrast threshold of approximately 2.15.
"Equivalent" chips table are based (fairly arbitrarily) on the 0.001 probability level of dE00 (default Type 7 quantile
) within the upper triangle of the 8467x8467 contrast matrix. This corresponds to a dE00
contrast threshold of approximately 2.16.
character vector of strings containing Munsell notation of color, e.g. '10YR 4/3'
character vector of strings containing Munsell notation of color, e.g. '10YR 4/3', not NA-safe
# neutral hues (N) can be defined with chroma of 0 or NA
-g <- expand.grid(hue='N', value=2:8, chroma=0, stringsAsFactors=FALSE)
+g <- expand.grid(hue='N', value = 2:8, chroma = 0, stringsAsFactors = FALSE)
(m <- munsell2rgb(g$hue, g$value, g$chroma))
#> [1] "#080808FF" "#101111FF" "#1B1C1CFF" "#313233FF" "#464848FF" "#686A6AFF"
#> [7] "#A3A4A2FF"
soilPalette(m)
-# back-transform
-rgb2munsell(t(col2rgb(m)) / 255)
-#> rgb2munsell() will be deprecated in aqp 2.1, please use col2Munsell() instead.
+# back-transform to Munsell notation
+col2Munsell(t(col2rgb(m)) / 255)
#> hue value chroma sigma
#> 1 N 2 0 0.07161962
#> 2 N 3 0 0.16006468
@@ -177,30 +176,35 @@ Examples
# basic example
-d <- expand.grid(hue='10YR', value=2:8, chroma=1:8, stringsAsFactors=FALSE)
+d <- expand.grid(hue = '10YR', value = 2:8, chroma = 1:8, stringsAsFactors = FALSE)
d$color <- with(d, munsell2rgb(hue, value, chroma))
# similar to the 10YR color book page
-plot(value ~ chroma, data=d, col=d$color, pch=15, cex=3)
+plot(value ~ chroma, data = d, col = d$color, pch = 15, cex = 3, las = 1)
# multiple pages of hue:
-hues <- c('2.5YR','5YR','7.5YR','10YR')
-d <- expand.grid(hue=hues, value=c(2, 2.5, 3:8), chroma=seq(2,8,by=2), stringsAsFactors=FALSE)
+hues <- c('2.5YR', '5YR', '7.5YR', '10YR')
+d <- expand.grid(
+ hue = hues,
+ value = c(2, 2.5, 3:8),
+ chroma = seq(2, 8, by = 2),
+ stringsAsFactors = FALSE
+)
# convert Munsell -> sRGB
d$color <- with(d, munsell2rgb(hue, value, chroma))
# extract CIELAB coordinates
-with(d, munsell2rgb(hue, value, chroma, returnLAB=TRUE))
+with(d, munsell2rgb(hue, value, chroma, returnLAB = TRUE))
#> L A B
#> 1 19.63435 8.581829 6.904671
#> 2 19.63885 7.218216 8.403958
#> 3 19.64309 5.604564 9.796024
#> 4 19.64643 3.925689 10.809552
-#> 5 25.61413 8.964981 7.883329
-#> 6 25.61874 7.512179 9.391735
-#> 7 25.62282 5.921429 10.696891
-#> 8 25.62641 4.038568 11.737203
+#> 5 24.89202 8.410534 7.646258
+#> 6 24.89612 7.009457 8.945819
+#> 7 24.89989 5.467088 10.119765
+#> 8 24.90306 3.689869 10.988233
#> 9 30.24227 8.783403 8.562698
#> 10 30.24668 7.318196 9.973034
#> 11 30.25023 5.874147 11.071239
@@ -229,10 +233,10 @@ Examples
#> 34 19.65139 13.732554 17.743790
#> 35 19.65828 10.648231 20.853492
#> 36 19.66376 7.728635 23.220158
-#> 37 25.62467 16.841715 15.764548
-#> 38 25.63252 14.071901 19.008588
-#> 39 25.63934 11.019894 21.877591
-#> 40 25.64508 7.816474 24.266000
+#> 37 24.90262 15.783824 15.321719
+#> 38 24.90967 12.985037 18.058428
+#> 39 24.91585 10.010190 20.491240
+#> 40 24.92105 6.991035 22.505398
#> 41 30.25418 16.138556 16.739853
#> 42 30.26102 13.393855 19.324502
#> 43 30.26716 10.607618 21.731190
@@ -261,10 +265,10 @@ Examples
#> 66 19.66004 19.647377 27.500456
#> 67 19.73185 15.623392 28.738487
#> 68 19.79708 11.789189 28.633575
-#> 69 25.63195 24.085016 24.235428
-#> 70 25.64244 20.110227 30.306955
-#> 71 25.65112 15.655904 35.304110
-#> 72 25.71159 11.532749 35.488967
+#> 69 24.91028 22.815065 23.861975
+#> 70 24.91984 18.817894 29.078197
+#> 71 24.92784 14.420955 33.317690
+#> 72 25.22832 11.151767 34.944238
#> 73 30.26315 23.129287 25.729721
#> 74 30.27183 19.090733 29.870090
#> 75 30.27909 14.773612 33.318109
@@ -293,10 +297,10 @@ Examples
#> 98 19.81961 26.279610 29.415106
#> 99 19.92242 19.930878 29.199660
#> 100 19.97208 15.075890 29.012675
-#> 101 25.63665 31.325985 34.442593
-#> 102 25.74255 26.176040 36.522191
-#> 103 25.83829 20.112969 36.194864
-#> 104 25.89372 15.025805 35.910240
+#> 101 24.91543 29.770402 34.068302
+#> 102 25.01114 24.706093 35.595907
+#> 103 25.35137 19.551422 35.621473
+#> 104 25.40544 14.573993 35.352392
#> 105 30.26917 29.247934 35.554849
#> 106 30.28636 23.775732 41.036601
#> 107 30.35855 18.464558 40.657519
@@ -324,47 +328,28 @@ Examples
# plot: note that we are setting panel order from red --> yellow
library(lattice)
-xyplot(value ~ factor(chroma) | factor(hue, levels=hues),
- main="Common Soil Colors", layout=c(4,1), scales=list(alternating=1),
- strip=strip.custom(bg=grey(0.85)),
- data=d, as.table=TRUE, subscripts=TRUE, xlab='Chroma', ylab='Value',
- panel=function(x, y, subscripts, ...)
- {
- panel.xyplot(x, y, pch=15, cex=4, col=d$color[subscripts])
- }
+xyplot(
+ value ~ factor(chroma) | factor(hue, levels = hues),
+ main = "Common Soil Colors", layout = c(4, 1), scales = list(alternating = 1),
+ strip = strip.custom(bg = grey(0.85)),
+ data = d, as.table = TRUE, subscripts = TRUE,
+ xlab = 'Chroma', ylab = 'Value',
+ panel = function(x, y, subscripts, ...) {
+ panel.xyplot(x, y, pch = 15, cex = 4, col = d$color[subscripts])
+ }
)
-# soils example
-data(sp1)
-
-# convert colors
-sp1$soil_color <- with(sp1, munsell2rgb(hue, value, chroma))
-
-# simple plot, may need to tweak gamma-correction...
-image(matrix(1:nrow(sp1)), axes=FALSE, col=sp1$soil_color, main='Soil Colors')
-
-
-# convert into a more useful color space
-# you will need the colorspace package for this to work
-if(require(colorspace)) {
- # keep RGB triplets from conversion
- sp1.rgb <- with(sp1, munsell2rgb(hue, value, chroma, return_triplets=TRUE))
-
- # convert into LAB color space
- sp1.lab <- as(with(sp1.rgb, sRGB(r,g,b)), 'LAB')
- plot(sp1.lab)
-}
-#> Loading required package: colorspace
-
# convert a non-standard color to closest "chip" in `munsell` look-up table
getClosestMunsellChip('7.9YR 2.7/2.0', convertColors = FALSE)
#> [1] "7.5YR 2.5/2"
-# convert directly to R color
+
+# convert directly to hex notation of sRGB
getClosestMunsellChip('7.9YR 2.7/2.0')
-#> [1] "#4B392DFF"
+#> [1] "#48382CFF"
+
# See ?NCSP for examples
-