Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

glplot.inla.mesh

Visualize SpatialPoints using RGL


Description

This function transforms the mesh to 3D cartesian coordinates and uses inla.plot.mesh() with rgl=TRUE to plot the result.

Usage

## S3 method for class 'inla.mesh'
glplot(object, add = TRUE, col = NULL, ...)

Arguments

object

an inla.mesh object.

add

If TRUE, add the lines to an existing plot. If FALSE, create new plot.

col

Color specification. A single named color, a vector of scalar values, or a matrix of RGB values.

...

Parameters passed on to plot.inla.mesh()

See Also

Other inlabru RGL tools: globe(), glplot.SpatialLines(), glplot.SpatialPoints(), glplot()

Examples

## Not run: 
if (bru_safe_inla() &&
  require("rgl", quietly = TRUE) &&
  require("sphereplot", quietly = TRUE)) {

  # Load pantropoical dolphin data

  data("mexdolphin", package = "inlabru")

  # Show the globe

  globe()

  # Add mesh, ship transects and dolphin sightings stored
  # as inla.mesh, SpatialLines and SpatialPoints objects, respectively

  glplot(mexdolphin$mesh)
  glplot(mexdolphin$samplers)
  glplot(mexdolphin$points)
}

## End(Not run)

inlabru

Bayesian Latent Gaussian Modelling using INLA and Extensions

v2.3.1
GPL (>= 2)
Authors
Finn Lindgren [aut, cre, cph] (<https://orcid.org/0000-0002-5833-2011>, Finn Lindgren continued development of the main code), Fabian E. Bachl [aut, cph] (Fabian Bachl wrote the main code), David L. Borchers [ctb, dtc, cph] (David Borchers wrote code for Gorilla data import and sampling, multiplot tool), Daniel Simpson [ctb, cph] (Daniel Simpson wrote the basic LGCP sampling method), Lindesay Scott-Howard [ctb, dtc, cph] (Lindesay Scott-Howard provided MRSea data import code), Seaton Andy [ctb] (Andy Seaton provided testing and bugfixes)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.