Scatter plot matrices of Raster objects.

Share:

Description

Draw conditional scatter plot matrices with hexagonally binning.

Usage

1
2
## S4 method for signature 'RasterStackBrick,missing'
splom(x, data=NULL,maxpixels=1e5, plot.loess=FALSE, colramp=BTC, varname.cex=0.6,...)

Arguments

x

A RasterStackBrick object.

data

Not used.

maxpixels

A numeric, for sampleRandom.

plot.loess

Logical, should a loess fit be drawn?.

colramp

A function accepting an integer n as argument and returning n colors (for hexbinplot).

varname.cex

A numerical multiplier to control the size of the variables names.

...

Additional arguments for splom.

Note

While the hexagonal binning is quite fast for large datasets, the use of the loess fit will slow this function.

Author(s)

Oscar Perpiñán Lamigueiro

See Also

hexbinplot, splom

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
##Solar irradiation data from CMSAF
##Data available from http://www.box.net/shared/rl51y1t9sldxk54ogd44

old <- getwd()
##change to your folder...
setwd('CMSAF')
listFich <- dir(pattern='2008')
stackSIS <- stack(listFich)
stackSIS <- stackSIS*24 ##from irradiance (W/m2) to irradiation Wh/m2
setwd(old)

idx <- seq(as.Date('2008-01-15'), as.Date('2008-12-15'), 'month')

SISmm <- setZ(stackSIS, idx)
names(SISmm) <- month.abb

splom(SISmm)

## End(Not run)