Learn R Programming

Directional (version 4.0)

Interactive 3D plot of spherical data: Interactive 3D plot of spherical data

Description

Interactive 3D plot of spherical data.

Usage

sphereplot(x, col = NULL)

Arguments

x

A matrix with three columns, unit-vectors, spherical data.

col

If you want the points to appear with different colours put numbers here, otherwise leave it NULL.

Value

An interactive 3D plot of the spherical data will appear.

See Also

lambert, vmf.contour, euclid

Examples

Run this code
# NOT RUN {
x <- rvmf(100, rnorm(3), 5)
sphereplot(x)
ina <- rbinom(100, 1, 0.5) + 1
sphereplot(x, col = ina)
# }

Run the code above in your browser using DataLab