spheres {rgl}R Documentation

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

spheres3d(rnorm(10), rnorm(10), rnorm(10), radius=runif(10), color=rainbow(10))

[Package rgl version 0.65 Index]