Learn R Programming

inlabru (version 2.1.9)

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)

Arguments

object

An inla.mesh object.

Value

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

Examples

Run this code
# NOT RUN {
data("mrsea")
vrt = vertices(mrsea$mesh)
ggplot() + gg(mrsea$mesh) + gg(vrt, color = "red")
# }

Run the code above in your browser using DataLab