staticmap_plotRasterBrick: Plot an RGB rasterBrick

View source: R/staticmap_plotRasterBrick.R

staticmap_plotRasterBrickR Documentation

Plot an RGB rasterBrick

Description

Plots the incoming rasterBrick.

Usage

staticmap_plotRasterBrick(rasterBrick = NULL, grayscale = FALSE, ...)

Arguments

rasterBrick

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

grayscale

logical specifying conversion to grayscale

...

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

See Also

staticmap_getStamenmapBrick

Examples

## Not run: 
# Fail gracefully if any resources are not available
try({

rasterBrick <- staticmap_getStamenmapBrick(-122.3318, 47.668)
staticmap_plotRasterBrick(rasterBrick)
staticmap_plotRasterBrick(rasterBrick, grayscale = TRUE)

}, silent = FALSE)

## End(Not run)


MazamaScience/PWFSLSmoke documentation built on July 3, 2023, 11:03 a.m.