Learn R Programming

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

rgl (version 0.100.18)

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

78,983

Version

0.100.18

License

GPL

Maintainer

Duncan Murdoch

Last Published

March 8th, 2019

Functions in rgl (0.100.18)

arrow3d

Draw an arrow in a scene.
extrude3d

Generate extrusion mesh
light

add light source
persp3d.function

Plot a function of two variables
aspect3d

Set the aspect ratios of the current plot
rgl.attrib

Get information about shapes
rgl-package

3D visualization device system
rgl-internal

Internal rgl functions and data
persp3d.triSht

Plot an interp or tripack Delaunay triangulation.
rgl.material

Generic Appearance setup
figWidth

Get R Markdown figure dimensions in pixels.
rgl.setMouseCallbacks

User callbacks on mouse events
axes3d

Draw boxes, axes and other text outside the data
mfrow3d

Set up multiple figure layouts in rgl.
setUserShaders

Set user-defined shaders for rgl objects.
bgplot3d

Use base graphics for RGL background
persp3d

Surface plots
bg3d

Set up Background
persp3d.deldir

Plot a Delaunay triangulation.
clipplaneControl

Sets attributes of a clipping plane.
rgl.bbox

Set up Bounding Box decoration
plot3d.formula

Methods for formulas
plot3d.lm

Method for plotting simple linear fit.
cylinder3d

Create cylindrical or "tube" plots.
identify3d

Identify points in plot.
rglShared

Create shared data from an rgl object.
r3d

Generic 3D interface
import

Imported from magrittr
par3dinterpControl

Control rgl widget like par3dinterp().
readSTL

Read and write STL (stereolithography) format files
pch3d

Plot symbols similar to base graphics.
elementId2Prefix

Use widget with old-style controls.
observer3d

Set the observer location.
.check3d

Check for an open rgl window.
rglToLattice

Convert rgl userMatrix to lattice or base angles
select3d

Select a rectangle in an RGL scene
subsceneInfo

Get information on subscenes
shapelist3d

Create and plot a list of shapes
grid3d

Add a grid to a 3D plot
subscene3d

Create, select or modify a subscene.
playwidget

Add a widget to play animations.
ellipse3d

Make an ellipsoid
plot3d

3D Scatterplot
rgl.postscript

export screenshot
plotmath3d

Generate sprites using base graphics math plotting.
selectpoints3d

Select points from a scene
polygon3d

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

add primitive set shape
sprites

add sprite set shape
viewpoint

Set up viewpoint
hook_rgl

Hook functions to use with knitr
webGLcontrols

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

generic subdivision surface method
matrices

Work with homogeneous coordinates
mesh3d

3D Mesh objects
turn3d

Create a solid of rotation from a two-dimensional curve.
rgl.attrib.info

Get information about attributes of objects
planes3d

add planes
rgl.Sweave

Integrating rgl with Sweave
play3d

Play animation of rgl scene
rgl.useNULL

Report default use of null device.
rgl.pixels

Extract pixel information from window
vertexControl

Set attributes of vertices.
rgl.select

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

Set or Query RGL Parameters
scene3d

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

Interpolator for par3d parameters
rgl.user2window

Convert between rgl user and window coordinates
propertyControl

Controls to use with playwidget().
rglIds

rgl id values
sceneChange

Make large change to a scene from Shiny
spheres3d

add sphere set shape
rglMouse

Generate HTML code to select mouse mode.
shiny

rgl.surface

add height-field surface shape
surface3d

add height-field surface shape
propertySetter

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

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

Communicate rgl parameters between R and Javascript in Shiny.
show2d

Draw a 2D plot on a rectangle in a 3D scene.
toggleWidget

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

Triangulate a two-dimensional polygon.
rgl.bringtotop

Assign focus to an RGL window
rgl.open

3D visualization device system
rglwidget

An htmlwidget to hold an rgl scene.
scene

scene management
rgl.snapshot

export screenshot
writeASY

Write Asymptote code for an rgl scene
writeOBJ

Read and write Wavefront OBJ format files
text3d

add text
thigmophobe3d

Find the direction away from the closest point in a 3d projection.
writePLY

Write Stanford PLY format files
writeWebGL

Write scene to HTML.
as.mesh3d.ashape3d

Convert alpha-shape surface of a cloud of points to mesh3d object.
asRow

Convenience functions for rgl HTML layouts
arc3d

Draw arcs.
abclines3d

Lines intersecting the bounding box
addNormals

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

add primitive set shape
GramSchmidt

The Gram-Schmidt algorithm
ageControl

Set attributes of vertices based on their age.
ageSetter

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