Learn R Programming

lgcp (version 1.8)

lgcpgrid.matrix: lgcpgrid.matrix function

Description

Creates an lgcp grid object from an 2-dimensional matrix.

Usage

# S3 method for matrix
lgcpgrid(grid, xvals = 1:nrow(grid), yvals = 1:ncol(grid), ...)

Arguments

grid

a three dimensional array object

xvals

optional vector of x-coordinates associated to grid. By default, this is the cell index in the x direction.

yvals

optional vector of y-coordinates associated to grid. By default, this is the cell index in the y direction.

...

other arguments

Value

an object of class lgcpgrid

See Also

lgcpgrid.list, as.list.lgcpgrid, print.lgcpgrid, summary.lgcpgrid, quantile.lgcpgrid, image.lgcpgrid, plot.lgcpgrid