Learn R Programming

gMOIP (version 1.5.3)

ini3D: Initialize the RGL window.

Description

Initialize the RGL window.

Usage

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

Value

NULL (invisible).

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 for rgl::plot3d.

  • argsAspect3d: A list of arguments for rgl::aspect3d.

Examples

Run this code
# \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()
# }

Run the code above in your browser using DataLab