Graphics utility functions to draw vectors from an origin to a collection of
points (using arrows
in 2D or
lines3d
in 3D) with labels for each (using
text
or texts3d
).
Arguments
- x
A two-column matrix or a three-column matrix containing the end points of the vectors
- origin
Starting point(s) for the vectors
- labels
Labels for the vectors
- scale
A multiplier for the length of each vector
- col
color(s) for the vectors.
- lwd
line width(s) for the vectors.
- cex
color(s) for the vectors.
- length
For
vectors
, length of the edges of the arrow head (in inches).- angle
For
vectors
, angle from the shaft of the arrow to the edge of the arrow head.- pos
For
vectors
, position of the text label relative to the vector head. Ifpos==NULL
, labels are positioned labels outside, relative to arrow ends.- ...
other graphical parameters, such as
lty
,xpd
, ...