Learn R Programming

lgcp (version 1.8)

lgcpgrid.array: lgcpgrid.array function

Description

Creates an lgcp grid object from an 3-dimensional array.

Usage

# S3 method for array
lgcpgrid(
  grid,
  xvals = 1:dim(grid)[1],
  yvals = 1:dim(grid)[2],
  zvals = 1:dim(grid)[3],
  ...
)

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.

zvals

optional vector of z-coordinates (time) associated to grid. By default, this is the cell index in the z 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