Description Usage Arguments Author(s) Examples
Make an interactive 3D plot (map) of a RasterLayer. This is a wrapper around surface3d
in the rgl package. You can use decorate3d
to add axes.
1 2 3 |
x |
a RasterLayer object |
maxpixels |
Maximum number of pixels to use |
zfac |
Numeric, to set the elevation scale relative to x and y |
drape |
RasterLayer, to 'drape' colors representing the values of this layer on the 3D representation of layer |
col |
A color palette generating function such as |
rev |
Logical. If |
adjust |
Logical. If |
... |
Any argument that can be passed to |
Robert J. Hijmans
1 2 3 4 5 6 7 |
Loading required package: raster
Loading required package: sp
Loading required package: lattice
Loading required package: latticeExtra
Loading required package: rgl
sh: 1: awk: Permission denied
Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl.init' failed, running with 'rgl.useNULL = TRUE'.
3: In .local(x, ...) :
breaks are approximate, based on a sample of 5307 cells that are not NA
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.