Learn R Programming

INLAspacetime (version 0.1.11)

mesh2d: Illustrative code for building a mesh in 2d domain.

Description

Creates a mesh object. This is just a test code. For efficient, reliable and general code use the fmesher package.

Usage

mesh2d(loc, domain, max.edge, offset, SP = TRUE)

Value

a mesh object.

Arguments

loc

a two column matrix with location coordinates.

domain

a two column matrix defining the domain.

max.edge

the maximum edge length.

offset

the length of the outer extension.

SP

logical indicating if the output will include the SpatialPolygons.

Warning

This is just for illustration purpose and one should consider the efficient function available a the INLA package.