rgl.primitive {rgl} | R Documentation |
Adds a shape node to the current scene
rgl.points(x, y = NULL, z = NULL, ... ) rgl.lines(x, y = NULL, z = NULL, ... ) rgl.linestrips(x, y = NULL, z = NULL, ...) rgl.triangles(x, y = NULL, z = NULL, ... ) rgl.quads(x, y = NULL, z = NULL, ... )
x, y, z |
coordinates. Any reasonable way of defining the
coordinates is acceptable. See the function xyz.coords
for details. |
... |
Material properties. See rgl.material for details. |
Adds a shape node to the scene. The appearance is defined by the material properties.
See rgl.material
for details.
rgl.material
,
rgl.spheres
,
rgl.texts
,
rgl.surface
,
rgl.sprites
rgl.clear() rgl.points(rnorm(1000), rnorm(1000), rnorm(1000), color=heat.colors(1000), size=2)