
rgl.bbox(
xat=NULL, xlab=NULL, xunit=0, xlen=5,
yat=NULL, ylab=NULL, yunit=0, ylen=5,
zat=NULL, zlab=NULL, zunit=0, zlen=5,
marklen=15.0, marklen.rel=TRUE, expand=1, ...)
bbox3d(xat, yat, zat, expand=1.03, nticks=5, ...)
marklen
* axis length, otherwise tick mark length is marklen
in coordinate spacergl.bbox
parameters
in the case of bbox3d
). See rgl.material
for details.rgl.pop
to delete it.at
is not NULL
, the ticks are set up at custom positions.
If unit
is not zero, it defines the tick mark base.
If length
is not zero, it specifies the number of ticks that are automatically specified.
The first colour specifies the bounding box, while the second one specifies the tick mark and font colour.
bbox3d
defaults to pretty
locations for the axis labels and a slightly larger
box, whereas rgl.bbox
covers the exact range.
axes3d
offers more flexibility in the specification of the axes, but
they are static, unlike those drawn by rgl.bbox
and bbox3d
.rgl.material
, axes3d
rgl.open()
rgl.points(rnorm(100), rnorm(100), rnorm(100))
rgl.bbox(color=c("#333377","white"), emission="#333377",
specular="#3333FF", shininess=5, alpha=0.8 )
open3d()
points3d(rnorm(100), rnorm(100), rnorm(100))
bbox3d(color=c("#333377","black"), emission="#333377",
specular="#3333FF", shininess=5, alpha=0.8)
Run the code above in your browser using DataLab