Skip to contents

Initialize the RGL window.

Usage

ini3D(new = TRUE, clear = FALSE, ...)

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:

Value

NULL (invisible).

Examples

# \donttest{
ini3D()
pts<-matrix(c(1,1,1,5,5,5), ncol = 3, byrow = TRUE)
plotPoints3D(pts)
finalize3D()



lim <- c(-1, 7)
ini3D(argsPlot3d = list(xlim = lim, ylim = lim, zlim = lim))
plotPoints3D(pts)
finalize3D()


# }