Initialize the RGL window.
Arguments
- new
A new window is opened (otherwise the current is cleared).
- clear
Clear the current RGL window.
- ...
Further arguments passed on the the RGL plotting functions. This must be done as lists. Currently the following arguments are supported:
argsPlot3d
: A list of arguments forrgl::plot3d
.argsAspect3d
: A list of arguments forrgl::aspect3d
.
Examples
# \donttest{
ini3D()
pts<-matrix(c(1,1,1,5,5,5), ncol = 3, byrow = TRUE)
plotPoints3D(pts)
finalize3D()
3D plot
lim <- c(-1, 7)
ini3D(argsPlot3d = list(xlim = lim, ylim = lim, zlim = lim))
plotPoints3D(pts)
finalize3D()
3D plot
# }