# NOT RUN {
## spectrum of the (in)famous RGB rainbow palette
specplot(rainbow(100))
## spectrum of HCL-based palettes: qualitative/sequential/diverging
specplot(rainbow_hcl(100))
specplot(sequential_hcl(100))
specplot(diverge_hcl(100))
## return computed RGB and HCL coordinates
res <- specplot(rainbow(10), plot = FALSE)
print(res)
# }
Run the code above in your browser using DataLab