Skip to contents

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

Usage

vertices.inla.mesh(object)

Arguments

object

An inla.mesh object.

Value

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

Author

Fabian E. Bachl bachlfab@gmail.com

Examples

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

# }