add_barrier_mesh: Transform a mesh object into a mesh with correlation barriers

View source: R/deprecated.R

add_barrier_meshR Documentation

Transform a mesh object into a mesh with correlation barriers

Description

Moved to the sdmTMBextra package. Make sure to load sdmTMBextra after sdmTMB.

Usage

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 to generate 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.

Value

Deprecated. See the sdmTMBextra package.

Examples

## Not run: 
add_barrier_mesh()

## End(Not run)

pbs-assess/sdmTMB documentation built on Dec. 10, 2024, 9:25 a.m.