The rectangular prism holding the 3D plot has 12 edges. They are identified
using 3 character strings. The first character (x',
y', or z') selects the direction of the axis. The next two characters are each
-' or +', selecting the lower or upper end of one of the other coordinates. If only one or two characters are given, the remaining characters default to
-'.
For example edge = 'x+'
draws an x-axis at the high level of y and the
low level of z.
By default, rgl::axes3d()
uses the rgl::bbox3d()
function to draw the axes.
The labels will move so that they do not obscure the data. Alternatively,
a vector of arguments as described above may be used, in which case
fixed axes are drawn using rgl::axis3d()
.
If pos
is a numeric vector of length 3, edge
determines
the direction of the axis and the tick marks, and the values of the
other two coordinates in pos
determine the position. See the
examples.