raster.leaflet.plot: Plot a 'RasterLayer' or 'RasterStack' object through the...

Description Usage Arguments Value Author(s) Examples

View source: R/raster.leaflet.plot.R

Description

The function uses the leaflet package to plot raster maps, also allowing zoom and navigation functionalities.

Usage

1
2
3
raster.leaflet.plot(RASTER.LAYER, PROJECT = F, DOMAIN = NULL,
  PALETTE = NULL, POSITION = NULL, REVERSE = T, OPACITY = 1,
  colNA = NA)

Arguments

RASTER.LAYER

a a RasterLayer or RasterStack object to be plotted

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

Value

a data.frame with the reduced points

Author(s)

Mirko Di Febbraro

Examples

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)

francesco-carotenuto/PaleoMacroEco documentation built on Dec. 23, 2019, 6:36 p.m.