Learn R Programming

inlabru (version 2.7.0)

vertices.inla.mesh: Extract vertex locations from an inla.mesh

Description

Converts the vertices of an inla.mesh object into a SpatialPointsDataFrame.

Usage

vertices.inla.mesh(object)

Value

A SpatialPointsDataFrame of mesh vertex locations. The vrt column indicates the internal vertex id.

Arguments

object

An inla.mesh object.

Author

Fabian E. Bachl bachlfab@gmail.com

Examples

Run this code
# \donttest{
if (require(ggplot2, quietly = TRUE)) {
  data("mrsea", package = "inlabru")
  vrt <- vertices.inla.mesh(mrsea$mesh)
  ggplot() +
    gg(mrsea$mesh) +
    gg(vrt, color = "red")
}
# }

Run the code above in your browser using DataLab