The function calculates and optionally draws basis vectors to be used as
coordinate axes in an rgl 3D display. For geometric diagrams and some data
displays, this can be more useful than using axis3d
or
box3d
to provide guides or axes. The origin
argument permits multiple diagrams or graphs in the same display, each with
their own coordinate axes.
Arguments
- matrix
A 3 x 3 matrix, whose columns are the basis vectors, typically of unit length.
- origin
Origin in the rgl scene of the basis vectors
- scale
Scaling factor for the basis vectors
- draw
If
TRUE
, the vectors are plotted- label
If
TRUE
, the vectors are labeled at their tips- texts
A character vector of length 3 used for labels. Defaults to
c("x", "y", "z")
.- lwd
Line width for vectors
- cex
Character size for labels
- ...
Other arguments, passed to
segments3d
andtext3d