# example data
data(sp2)
# convert into SoilProfileCollection object
depths(sp2) <- id ~ top + bottom
previewColors(sp2$soil_color)
previewColors(sp2$soil_color, method = 'MDS', pt.cex = 3)
# create colors using HCL space
cols.hcl <- hcl(h = 0:360, c = 100, l = 50)
# grid, colors sorted by dE00
previewColors(cols.hcl)
# manual specification
previewColors(cols.hcl, method = 'manual', col.order = 1:361)
# MDS
previewColors(cols.hcl, method = 'MDS', pt.cex = 1)
Run the code above in your browser using DataLab