I am trying to insert an RColorBrewer palette to visualize an elevation raster in R using the rasterVis function
plot3D. The rasterVis reference document shows the following parameters:
plot3D(x, maxpixels=100000, zfac=1, drape=NULL, col, rev=FALSE, adjust=TRUE, ...)
However, when I use
col= I get the following error:
Error in col(zlen) : a matrix-like object is required as argument to 'row/col'
When I use
color= I get:
Error in f(...) : formal argument "color" matched by multiple actual arguments
I've also tried this:
color.palette = brewer.pal(11, "PRGn")
which renders the 3D-plot, but uses the default color palette.
Any suggestions, assistance clarifying the errors, or input is much appreciated.