Allow 'xyz_heightmap()'s 'col' argument to be a vector or function (as well as matrix)
Closed this issue · 1 comments
trevorld commented
-
If
col
is a matrix treat the same as before -
If
col
is a vector (of colors) then use them to color cubes by height- If
fill
isTRUE
this will color the filled in lower cubes differently by height
- If
-
If
col
is a function then treat it as a palette function usingmax(z)
as itsn
trevorld commented
Can use as.integer(cut(z, breaks = n))
to break z
into n
ranges (for colors)