Learn R Programming

fields (version 2.3)

image.count: Creates image for a 2-d histogram from irregular locations

Description

Discretizes a matrix of 2-d locations and counts the number of occurrences for each grid box.

Usage

image.count(x, grid=NULL, nrow=64, ncol=64,...)

Arguments

Value

An list in image format. Components x and y are the grid values , z is a nrow X ncol matrix with the Z values. NA's are placed at cell locations where Z data has not been supplied.

See Also

image.smooth, image.plot, Krig.discretize, Krig.replicates

Examples

Run this code
look<- image.count( RMprecip$x, nrow=32, ncol=32)
image.plot( look)

Run the code above in your browser using DataLab