rgl.open() # open new device
rgl.close() # close current device
rgl.cur() # returns active device ID
rgl.set(which) # set device as active
rgl.quit() # shutdown rgl device system
rgl.init(initValue=0) # re-initialize rglrgl.set().
rgl.quit() shuts down the rgl subsystem and all open devices,
detaches the package including the shared library and additional system libraries.
If rgl.open() fails (e.g. because X windows is not running, or its
DISPLAY variable is not set properly), then you can retry the initialization
by calling rgl.init(). Do not do this when windows have
already been successfully opened: they will be orphaned, with no way to
remove them other than closing R. In fact, it's probably a good idea not to do this
at all: quitting R and restarting it is a better solution.See the first example below to display the ChangeLog.
rgl.clear,
rgl.pop,
rgl.viewpoint,
rgl.light,
rgl.bg,
rgl.bbox,
rgl.points,
rgl.lines,
rgl.triangles,
rgl.quads,
rgl.texts,
rgl.surface,
rgl.spheres,
rgl.sprites,
rgl.snapshotfile.show(system.file("ChangeLog", package="rgl"))
example(surface3d)
example(plot3d)Run the code above in your browser using DataLab