Learn R Programming

rgl (version 0.65)

spheres: add sphere set shape

Description

Adds a sphere set shape node to the scene

Usage

spheres3d(x, y, z, radius = 1, ...)
rgl.spheres(x, y, z, radius, ...)

Arguments

x, y, z
Numeric vector of point coordinates corresponding to the center of each sphere
radius
Vector or single value defining the sphere radius/radii
...
Material properties. See rgl.material for details.

See Also

rgl.material

Examples

Run this code
spheres3d(rnorm(10), rnorm(10), rnorm(10), radius=runif(10), color=rainbow(10))

Run the code above in your browser using DataLab