Description Usage Arguments Value Author(s) Examples
View source: R/raster.leaflet.plot.R
The function uses the leaflet package to plot raster maps, also allowing zoom and navigation functionalities.
1 2 3 | raster.leaflet.plot(RASTER.LAYER, PROJECT = F, DOMAIN = NULL,
PALETTE = NULL, POSITION = NULL, REVERSE = T, OPACITY = 1,
colNA = NA)
|
RASTER.LAYER |
a a |
PROJECT |
a logical vector indicating if the raster map must be projected to EPSG:3857 |
DOMAIN |
a numerical vector indicating the range of raster values to be plotted |
PALETTE |
one of the palettes from PAL1 to PAL28 |
POSITION |
a character vector indicating legend position ('topright' is the default) |
REVERSE |
a logical vector indicating if to reverse the color palette |
OPACITY |
a numerical vector ranging from 0 to 1 indicating the opacity level |
colNA |
the color of NA cells |
a data.frame with the reduced points
Mirko Di Febbraro
1 2 3 4 5 6 7 | ## Not run:
library(raster)
data(lgm)
raster(system.file("exdata/prediction_ground.gri", package="DeepTime"))->prediction_ground
raster.leaflet.plot(prediction_ground)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.