rgl (version 0.67-2)

spheres: add sphere set shape

Description

Adds a sphere set shape node to the scene

Usage

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

Arguments

x, y, z
Numeric vector of point coordinates corresponding to the center of each sphere. Any reasonable way of defining the coordinates is acceptable. See the function xyz.coords for details
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 DataCamp Workspace