add_barrier_mesh function

Transform a mesh object into a mesh with correlation barriers

Transform a mesh object into a mesh with correlation barriers

Moved to the sdmTMBextra

package. Make sure to load sdmTMBextra after sdmTMB.

add_barrier_mesh( spde_obj = deprecated(), barrier_sf = deprecated(), range_fraction = 0.2, proj_scaling = 1, plot = FALSE )

Arguments

  • spde_obj: Output from make_mesh().
  • barrier_sf: An sf object with polygons defining the barriers. For example, a coastline dataset for ocean data. Note that this object must have the same projection as the data used togenerate the x and y columns in ‘spde_obj’.
  • range_fraction: The fraction of the spatial range that barrier triangles have.
  • proj_scaling: If spde_obj was created with scaling of the coordinates after the projection (e.g., dividing UTMs by 1000 so the spatial range is on a reasonable scale) the x and y values in spde_obj are multiplied by this scaling factor before applying the projection from barrier_sf.
  • plot: Logical.

Returns

Deprecated. See the sdmTMBextra package.

Examples

## Not run: add_barrier_mesh() ## End(Not run)