Learn R Programming

eRTG3D (version 0.7.0)

plotRaster: Plots a rasterLayer or rasterStack

Description

Plots a rasterLayer or rasterStack

Usage

plotRaster(r, title = character(0), centerColorBar = FALSE, ncol = NULL)

Arguments

r

rasterLayer or rasterStack

title

title text of plot(s)

centerColorBar

logical: center colobar around 0 and use RdBuTheme()?

ncol

number of columns to plot a stack, by default estimated by the square root

Value

Plots the rasters

Examples

Run this code
# NOT RUN {
plotRaster(dem)
# }

Run the code above in your browser using DataLab