Learn R Programming

inlabru (version 2.1.1)

globe: Plot a globe using rgl

Description

Creates a textured sphere and lon/lat coordinate annotations.

Usage

globe(R = 1, R.grid = 1.05, specular = "black", axes = FALSE,
  box = FALSE, xlab = "", ylab = "", zlab = "")

Arguments

R

Radius of the globe

R.grid

Radius of the annotation sphere.

specular

Light color of specular effect.

axes

If TRUE, plot x, y and z axes.

box

If TRUE, plot a box around the globe.

xlab, ylab, zlab

Axes labels

Value

No value, used for plotting side effect.

See Also

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

Examples

Run this code
# NOT RUN {
# Load rgl library (needed due to a bug in sphereplot library)

library(rgl)

# Load pantropoical dolphin data

data("mexdolphin")

# 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