Visualize SpatialPoints using RGL
This function will calculate the cartesian coordinates of the points provided and use rgl.points() in order to render them.
## S3 method for class 'SpatialPoints' glplot(object, add = TRUE, color = "red", ...)
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 rgl.material() for details. |
... |
Parameters passed on to rgl.points() |
Other inlabru RGL tools:
globe()
,
glplot.SpatialLines()
,
glplot.inla.mesh()
,
glplot()
## 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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.