This function will calculate the cartesian coordinates of the points provided and use points3d() in order to render them.
Usage
# S3 method for SpatialPoints
glplot(object, add = TRUE, color = "red", ...)
Arguments
- object
a SpatialPoints or SpatialPointsDataFrame object.
- add
If TRUE, add the points to an existing plot. If FALSE, create new plot.
- color
vector of R color characters. See material3d() for details.
- ...
Parameters passed on to points3d()
See also
Other inlabru RGL tools:
globe()
,
glplot.SpatialLines()
,
glplot.inla.mesh()
,
glplot()
Examples
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)
}
}