Learn R Programming

spatsurv (version 2.0)

getGrid: getGrid function

Description

A function to extract and return the computational grid from a gridded analysis.

Usage

getGrid(mod, returnclass = "SpatialPolygonsDataFrame")

Value

a SpatialPolygonsDataFrame in which Monte Carlo expectations can be stored and later plotted.

Arguments

mod

an object of class mcmcspatsurv, returned by the function survspat

returnclass

the class of object to return, default is a'SpatialPolygonsDataFrame'. Other options are 'raster', which returns a raster brick; or 'SpatialPixelsDataFrame'