Learn R Programming

lgcp (version 1.8)

lgcpgrid.list: lgcpgrid.list function

Description

Creates an lgcpgrid object from a list object plus some optional coordinates. Note that each element of the list should be a matrix, and that each matrix should have the same dimension.

Usage

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

Arguments

grid

a list object with each member of the list being a numeric matrix, each matrix having the same dimension

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.array, as.list.lgcpgrid, print.lgcpgrid, summary.lgcpgrid, quantile.lgcpgrid, image.lgcpgrid, plot.lgcpgrid