Learn R Programming

⚠️There's a newer version (1.3.18) of this package.Take me there.

rgl (version 0.98.22)

3D Visualization Using OpenGL

Description

Provides medium to high level functions for 3D interactive graphics, including functions modelled on base graphics (plot3d(), etc.) as well as functions for constructing representations of geometric objects (cube3d(), etc.). Output may be on screen using OpenGL, or to various standard 3D file formats including WebGL, PLY, OBJ, STL as well as 2D image formats, including PNG, Postscript, SVG, PGF.

Copy Link

Version

Install

install.packages('rgl')

Monthly Downloads

84,310

Version

0.98.22

License

GPL

Maintainer

Duncan Murdoch

Last Published

December 13th, 2017

Functions in rgl (0.98.22)

arrow3d

Draw an arrow in a scene.
rgl.attrib

Get information about shapes
aspect3d

Set the aspect ratios of the current plot
axes3d

Draw boxes, axes and other text outside the data
ageControl

Set attributes of vertices based on their age.
points3d

add primitive set shape
ageSetter

Set WebGL scene properties based on the age of components of objects.
rgl.bbox

Set up Bounding Box decoration
abclines3d

Lines intersecting the bounding box
bg3d

Set up Background
cylinder3d

Create cylindrical or "tube" plots.
addNormals

Add normal vectors to objects so they render more smoothly.
elementId2Prefix

Use widget with old-style controls.
GramSchmidt

The Gram-Schmidt algorithm
ellipse3d

Make an ellipsoid
extrude3d

Generate extrusion mesh
.check3d

Check for an open rgl window.
hook_rgl

Hook functions to use with knitr
bgplot3d

Use base graphics for RGL background
rgl.material

Generic Appearance setup
rgl.setMouseCallbacks

User callbacks on mouse events
figWidth

Get R Markdown figure dimensions in pixels.
identify3d

Identify points in plot.
clipplaneControl

Sets attributes of a clipping plane.
par3dinterp

Interpolator for par3d parameters
import

Imported from magrittr
planes3d

add planes
persp3d.deldir

Plot a Delaunay triangulation.
grid3d

Add a grid to a 3D plot
observer3d

Set the observer location.
par3d

Set or Query RGL Parameters
pch3d

Plot symbols similar to base graphics.
light

add light source
persp3d

Surface plots
matrices

Work with homogeneous coordinates
playwidget

Add a widget to play animations.
persp3d.function

Plot a function of two variables
plot3d

3D Scatterplot
play3d

Play animation of rgl scene
mesh3d

3D Mesh objects
plotmath3d

Generate sprites using base graphics math plotting.
mfrow3d

Set up multiple figure layouts in rgl.
rgl.bringtotop

Assign focus to an RGL window
polygon3d

Triangulate and draw a polygon in three dimensions.
rgl.open

3D visualization device system
rglIds

rgl id values
rglToLattice

Convert rgl userMatrix to lattice or base angles
rgl.postscript

export screenshot
rgl.user2window

Convert between rgl user and window coordinates
rgl.primitive

add primitive set shape
rglwidget

An htmlwidget to hold an rgl scene.
scene

scene management
rgl.Sweave

Integrating rgl with Sweave
rgl.pixels

Extract pixel information from window
propertySetter

Write HTML/Javascript code to control a WebGL display.
rgl.select

Switch to select mode, and return the mouse position selected.
setUserShaders

Set user-defined shaders for rgl objects.
rgl.useNULL

Report default use of null device.
shapelist3d

Create and plot a list of shapes
rgl.attrib.info

Get information about attributes of objects
shiny

select3d

Select a rectangle in an RGL scene
spheres3d

add sphere set shape
toggleWidget

An HTML widget to toggle display of elements of a scene.
selectpoints3d

Select points from a scene
triangulate

Triangulate a two-dimensional polygon.
rgl.snapshot

export screenshot
writePLY

Write Stanford PLY format files
propertyControl

Controls to use with playwidget().
writeWebGL

Write scene to HTML.
spin3d

Create a function to spin a scene at a fixed rate
subsceneInfo

Get information on subscenes
sprites

add sprite set shape
viewpoint

Set up viewpoint
rgl.surface

add height-field surface shape
webGLcontrols

Write HTML/Javascript code to control a WebGL display.
par3dinterpControl

Control rgl widget like par3dinterp().
writeASY

Write Asymptote code for an rgl scene
r3d

Generic 3D interface
writeOBJ

Read and write Wavefront OBJ format files
readSTL

Read and write STL (stereolithography) format files
rgl-internal

Internal rgl functions and data
show2d

Draw a 2D plot on a rectangle in a 3D scene.
rgl-package

3D visualization device system
surface3d

add height-field surface shape
scene3d

Saves the current scene to a variable, and displays such variables.
vertexControl

Set attributes of vertices.
text3d

add text
sceneChange

Make large change to a scene from Shiny
subdivision3d

generic subdivision surface method
subscene3d

Create, select or modify a subscene.
turn3d

Create a solid of rotation from a two-dimensional curve.