rgl.primitive {rgl}R Documentation

add primitive set shape

Description

Adds a shape node to the current scene

Usage

rgl.points(x, y, z, ... )
rgl.lines(x, y, z, ... )
rgl.linestrips(x, y, z, ...)
rgl.triangles(x, y, z, ... )
rgl.quads(x, y, z, ... )

Arguments

x, y, z coordinates
... Material properties. See rgl.material for details.

Details

Adds a shape node to the scene. The appearance is defined by the material properties. See rgl.material for details.

See Also

rgl.material, rgl.spheres, rgl.texts, rgl.surface, rgl.sprites

Examples

rgl.clear()
rgl.points(rnorm(1000), rnorm(1000), rnorm(1000), color=heat.colors(1000), size=2)

[Package rgl version 0.65 Index]