Learn R Programming

misc3d (version 0.3-1)

lines3d: Draw 3D Lines

Description

Draw connected line segments in three dimensions.

Usage

lines3d(x,y,z,add=FALSE,...)

Arguments

x,y,z
coordinates of points to connect.
add
logical; if TRUE, add to current rgl graph.
...
material and texture properties. See rgl.material for details.

References

Daniel Adler, Oleg Nenadic and Walter Zucchini (2003) RGL: A R-library for 3D visualization with OpenGL

See Also

rgl.lines.

Examples

Run this code
#Plot a three-dimensional helix.
  t = seq(0,10*pi,by=pi/50)
  lines3d(4*sin(t),4*cos(t),t,color="red")

Run the code above in your browser using DataLab