if (requireNamespace("colorSpec", quietly = TRUE)) {
library(colorSpec)
as.colorSpec(polyester.spct)
as.colorSpec(sun.spct)
as.colorSpec(filter_mspct(list(polyester.spct, yellow_gel.spct)))
}
Run the code above in your browser using DataLab