Attribute a color to each element of a vector
set.colors(x, palette, trim = Inf, value_index = FALSE)
x
A vector.
palette
function. A color palette function. Default is height.colors provided by the package lidR.
height.colors
trim
numeric.