Learn R Programming

inlabru (version 2.6.0)

glplot: Render Spatial* and inla.mesh objects using RGL

Description

glplot is a generic function for renders various kinds of spatial objects, i.e. Spatial* data and inla.mesh objects. The function invokes particular methods which depend on the class of the first argument.

Usage

glplot(object, ...)

Arguments

object

an object used to select a method.

...

further arguments passed to or from other methods.

See Also

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

Examples

Run this code
if (FALSE) {
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)
}
}

Run the code above in your browser using DataLab