This function create the mesh for modelling with INLA framework
mesh(x, k, long, lat, loc_limit, plot = NULL)
Arguments
- x
is the dataset with the coordinates and the target variable.
- k
is the parameter for defining the delaunay triagulization.
- long
is the longitude.
- lat
is the latitude.
- loc_limit
is the locality limit.
- plot
is a logical argument. if TRUE plot the mesh else no plot the mesh.
Value
a mesh and plot of the mesh.
Details
this function use inla.