Learn R Programming

PWFSLSmoke (version 1.2.4)

esriMap_plotOnStaticMap: Plot a map from a RGB rasterBrick.

Description

The map is plotted using plotRGB from raster.

Usage

esriMap_plotOnStaticMap(mapRaster, grayscale = FALSE, ...)

Arguments

mapRaster

a RGB rasterBrick object. It is assumed that layer 1 represents red, layer 2 represents gree, and layer 3 represents blue.

grayscale

logical, if TRUE one layer is plotted with grayscale values. If FALSE, a color map is plotted from red, green, and blue colors.

...

arguments passed on to plot (for grayscale = TRUE) or plotRGB (for grayscale = FALSE)

Value

An plot of the map

See Also

esriMap_getMap

Examples

Run this code
# NOT RUN {
map <- esriMap_getMap(-122.3318, 47.668)
esriMap_plotOnStaticMap(map)
esriMap_plotOnStaticMap(map, grayscale = TRUE)
# }

Run the code above in your browser using DataLab