Learn R Programming

matlib (version 0.6.0)

arrows3d: Draw 3D arrows

Description

Draws nice 3D arrows with cone3ds at their tips.

Usage

arrows3d(coords, headlength = 0.035, head = "end", scale = NULL,
  radius = NULL, ...)

Arguments

coords
A 2n x 3 matrix giving the start and end (x,y,z) coordinates of n arrows, in pairs. The first vector in each pair is taken as the starting coordinates of the arrow, the second as the end coordinates.
headlength
Length of the arrow heads, in device units
head
Position of the arrow head. Only "end" is presently implemented.
scale
scale factor for base and tip of arrow head
radius
radius of the base of the arrow head
...
rgl arguments passed down to segments3d and cone3d

Value

  • none

Details

This function is meant to be analogous to arrows, but for 3D plots using rgl. headlength, scale and radius set the length, scale factor and base radius of the arrow head, a 3D cone. The units of these are all in terms of the ranges of the current rgl 3D scene.

See Also

vectors3d Other vector diagrams: Proj, corner, point_on_line, vectors3d, vectors

Examples

Run this code
# none yet

Run the code above in your browser using DataLab