MakeProjectionGrid: Function to create stack for predictions

View source: R/MakeProjectionGrid.R

MakeProjectionGridR Documentation

Function to create stack for predictions

Description

Function to create stack for predictions

Usage

MakeProjectionGrid(nxy, mesh, data, tag = "pred", coordnames = c("X", "Y"),
  boundary = NULL, intercept = TRUE)

Arguments

nxy

Number of points in x and y directions.

mesh

INLA mesh.

data

Data frame with columns for coordinates, and others are covariates.

tag

Name for tag for the stack (defaults to "points").

coordnames

Names of coorinates (defaults to X and Y)

boundary

Boundary of region to project onto. Defaults to NULL, when the boundary of the mesh will be used. Either of class SpatialPolygons or two columns with the coorinates of the polygon

intercept

Logical: should an intercept be added? Defaults to TRUE

Value

An INLA stack onto which new data can be projected


oharar/PointedSDMs documentation built on July 11, 2022, 11:20 a.m.