soil_color | R Documentation |
The function converts the visible soil spectrum to three-dimensional color systems, such as Munsell and RGB, using the CIE tristimulus values for the conversion. This allows for the standardized representation of colors and facilitates visual and comparative analysis.
soil_color(data = data,
name_wave = "wave",
tri_values = "std",
plot = FALSE)
data |
A data.frame containing the wavelength and reflectance values. |
name_wave |
Character indicating the name of the column with the wavelength. It can be only the initial characters. |
tri_values |
Tristimulus Values. Values from the |
plot |
Logical, if TRUE, the plot with the colors is generated, the default is FALSE |
A data.frame
with color values in Munsell
, HVC
, RGB
, and hexadecimal code
.
# example code
data(soil_refle)
soil_color(soil_refle)
# tristimulus values {colorSpec}
soil_color(soil_refle, tri_values = "xyz1931.1nm", plot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.