Learn R Programming

inlabru (version 2.7.0)

stransform: Deprecated functions in inlabru

Description

These functions still attempt to do their job, but will be removed in a future version.

Usage

stransform(splist, crs)

init.tutorial()

ibm_valid_input(...)

# S3 method for bru_mapper_inla_mesh_2d ibm_amatrix(...)

# S3 method for bru_mapper_inla_mesh_1d ibm_amatrix(...)

# S3 method for bru_mapper_index ibm_amatrix(...)

# S3 method for bru_mapper_linear ibm_amatrix(...)

# S3 method for bru_mapper_matrix ibm_amatrix(...)

# S3 method for bru_mapper_factor ibm_amatrix(...)

bru_mapper_offset(...)

# S3 method for bru_mapper_offset ibm_n(...)

# S3 method for bru_mapper_offset ibm_values(...)

# S3 method for bru_mapper_offset ibm_amatrix(...)

# S3 method for bru_mapper_multi ibm_amatrix(...)

# S3 method for bru_mapper_collect ibm_amatrix(...)

eval_SpatialDF(...)

Value

stransform

Arguments

splist

list of Spatial* objects

crs

Coordinate reference system to change to

...

Usually passed on to other methods

Functions

  • stransform(): Coordinate transformation for spatial objects

    This is a wrapper for the spTransform function provided by the sp package. Given a spatial object (or a list thereof) it will transform the coordinate system according to the parameter crs. In addition to the usual spatial objects this function is also capable of transforming INLA::inla.mesh objects that are equipped with a coordinate system. Returns a list of Spatial* objects.

    Deprecated in favour of the fm_transform methods.

  • init.tutorial(): Global setting for tutorial sessions.

    Use bru_options_set() to set specific options instead instead. In versions <= 2.1.15, this function set the INLA integration strategy to "eb" to speed up calculations. This is normally not needed since version 2.2.0, since the only the final iteration will use other than "eb".

  • ibm_valid_input(): Use case changed to ibm_invalid_output()

  • ibm_amatrix(bru_mapper_inla_mesh_2d): Replaced by ibm_jacobian()

  • ibm_amatrix(bru_mapper_inla_mesh_1d): Replaced by ibm_jacobian()

  • ibm_amatrix(bru_mapper_index): Replaced by ibm_jacobian()

  • ibm_amatrix(bru_mapper_linear): Replaced by ibm_jacobian()

  • ibm_amatrix(bru_mapper_matrix): Replaced by ibm_jacobian()

  • ibm_amatrix(bru_mapper_factor): Replaced by ibm_jacobian()

  • bru_mapper_offset(): Creates a bru_mapper_const() mapper.

  • ibm_n(bru_mapper_offset): Replaced by bru_mapper_const methods

  • ibm_values(bru_mapper_offset): Replaced by bru_mapper_const methods

  • ibm_amatrix(bru_mapper_offset): Replaced by bru_mapper_const methods

  • ibm_amatrix(bru_mapper_multi): Replaced by ibm_jacobian()

  • ibm_amatrix(bru_mapper_collect): Replaced by ibm_jacobian()

  • eval_SpatialDF(): Replaced by the generic eval_spatial()

Author

Finn Lindgren finn.lindgren@gmail.com

Fabian E. Bachl bachlfab@gmail.com

Examples

Run this code
# \donttest{
# Load Gorilla data
data("gorillas", package = "inlabru")

# Take the mesh and transform it to latitude/longitude
tmesh <- stransform(gorillas$mesh, crs = CRS("+proj=longlat"))

# Compare original and transformed mesh

if (require(ggplot2, quietly = TRUE)) {
  multiplot(
    ggplot() +
      gg(gorillas$mesh) +
      ggtitle("Original mesh"),
    ggplot() +
      gg(tmesh) +
      ggtitle("Transformed mesh")
  )
}
# }

if (FALSE) {
# Note: Only run this if you want to change the inlabru options for this session

# Determine current bru defaults:
bo <- bru_options_get()

init.tutorial()

# Check if it worked:
bru_options_get("control.inla")
}

Run the code above in your browser using DataLab