Visualize SpatialLines using RGL
This function will calculate a cartesian representation of the lines provided and use rgl.linestrip() in order to render them.
## S3 method for class 'SpatialLines' glplot(object, add = TRUE, ...)
object |
a SpatialLines or SpatialLinesDataFrame object. |
add |
If TRUE, add the lines to an existing plot. If FALSE, create new plot. |
... |
Parameters passed on to rgl.linestrips(). |
Other inlabru RGL tools:
globe()
,
glplot.SpatialPoints()
,
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.