Learn R Programming

raster (version 1.6-22)

pairs: Pair plots

Description

Pair plots of layers in a RasterStack or RasterBrick

Usage

pairs(x, ...)

Arguments

x
RasterBrick or RasterStack
...
Additional arguments. See Methods

Methods

pairs(x, hist=TRUE, cor=TRUE) rll{ v numeric, to select a subset of pairs, e.g. v=1:3 to plot only the first three variables hist logical. If TRUE a histogram of the values is shown on the diagonal cor logical. If TRUE the correlation coefficient is shown in the upper panels }

Examples

Run this code
r <- raster(system.file("external/test.grd", package="raster") )
s <- stack(r, 1/r, sqrt(r))
pairs(s)

Run the code above in your browser using DataLab