View source: R/MakeSpatialRegion.R
MakeSpatialRegion | R Documentation |
Function to set up spatial structure for region
MakeSpatialRegion(data = NULL, coords = c("X", "Y"), meshpars, bdry = NULL, proj = CRS("+proj=utm"))
data |
Data (as data frame, with points having locations, or as a SpatialPointsDataFrame). Can be NULL, if bdry is not NULL. |
coords |
Names of columns for coordinates (X & Y) in data. Ignored if data is NULL. |
meshpars |
List of parameters to be sent to inla.mesh.2d(). |
bdry |
Polygon of boundary for region, of class Polygon. If |
proj |
Projection to use if data is not a projection. Defaults to utm (hopefully). |
A list with 3 elements: . mesh: mesh (from inla.mesh.2d) . spde: spde object for Matern model (from inla.spde2.matern) . w: weights for each point in mesh
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.