# spheres3d

0th

Percentile

Adds a sphere set shape node to the scene

Keywords
dynamic
##### 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
...
Material properties. See rgl.material for details.
##### Details

If a non-isometric aspect ratio is chosen, these functions will still draw objects that appear to the viewer to be spheres. Use ellipse3d to draw shapes that are spherical in the data scale.

When the scale is not isometric, the radius is measured in an average scale. In this case the bounding box calculation is iterative, since rescaling the plot changes the shape of the spheres in user-coordinate, which changes the bounding box. Versions of rgl prior to 0.92.802 did not do this iterative adjustment.

If any coordinate or radius is NA, the sphere is not plotted.

##### Value

• A shape ID of the spheres object is returned.

rgl.material, aspect3d for setting non-isometric scales

• rgl.spheres
• spheres3d
##### Examples
open3d()
spheres3d(rnorm(10), rnorm(10), rnorm(10), radius = runif(10), color = rainbow(10))
Documentation reproduced from package rgl, version 0.95.1367, License: GPL

### Community examples

Looks like there are no examples yet.