ini3D: Initialize the RGL window.

View source: R/plot.R

ini3DR Documentation

Initialize the RGL window.

Description

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:

  • argsPlot3d: A list of arguments for rgl::plot3d.

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

Value

NULL (invisible).

Examples


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()


relund/gMOIP documentation built on Feb. 23, 2024, 12:11 p.m.