Learn R Programming

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

rgl (version 0.100.50)

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

62,852

Version

0.100.50

License

GPL

Maintainer

Duncan Murdoch

Last Published

February 21st, 2020

Functions in rgl (0.100.50)

arc3d

Draw arcs.
arrow3d

Draw an arrow in a scene.
elementId2Prefix

Use widget with old-style controls.
rgl.attrib

Get information about shapes
identify3d

Identify points in plot.
import

Imported from magrittr
GramSchmidt

The Gram-Schmidt algorithm
axes3d

Draw boxes, axes and other text outside the data
asRow

Convenience functions for rgl HTML layouts
ellipse3d

Make an ellipsoid
points3d

add primitive set shape
as.mesh3d.ashape3d

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

Convert object to mesh object
aspect3d

Set the aspect ratios of the current plot
ageControl

Set attributes of vertices based on their age.
as.mesh3d.rglId

Convert object in plot to mesh3d object.
planes3d

add planes
ageSetter

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

Add a grid to a 3D plot
par3d

Set or Query RGL Parameters
observer3d

Set the observer location.
rgl-internal

Internal rgl functions and data
hook_rgl

Hook functions to use with knitr
persp3d.triSht

Plot an interp or tripack Delaunay triangulation.
rgl.setMouseCallbacks

User callbacks on mouse events
par3dinterpControl

Control rgl widget like par3dinterp().
plot3d.formula

Methods for formulas
polygon3d

Triangulate and draw a polygon in three dimensions.
as.triangles3d

Convert an object to triangles.
rgl.postscript

export screenshot
readSTL

Read and write STL (stereolithography) format files
par3dinterp

Interpolator for par3d parameters
rgl.pixels

Extract pixel information from window
rglwidget

An htmlwidget to hold an rgl scene.
bgplot3d

Use base graphics for RGL background
abclines3d

Lines intersecting the bounding box
clipplaneControl

Sets attributes of a clipping plane.
rgl.select

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

3D Scatterplot
addNormals

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

scene management
rgl.bbox

Set up Bounding Box decoration
bg3d

Set up Background
select3d

Select a rectangle in an RGL scene
cylinder3d

Create cylindrical or "tube" plots.
rglToLattice

Convert rgl userMatrix to lattice or base angles
rglShared

Create shared data from an rgl object.
shiny

clipMesh3d

Clip mesh to general region
.check3d

Check for an open rgl window.
pch3d

Plot symbols similar to base graphics.
light

add light source
rgl.material

Generic Appearance setup
selectpoints3d

Select points from a scene
propertySetter

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

Write Asymptote code for an rgl scene
r3d

Generic 3D interface
rgl.surface

add height-field surface shape
writeOBJ

Read and write Wavefront OBJ format files
rgl.Sweave

Integrating rgl with Sweave
rglIds

rgl id values
surface3d

add height-field surface shape
rgl-package

3D visualization device system
shinyGetPar3d

Communicate rgl parameters between R and Javascript in Shiny.
playwidget

Add a widget to play animations.
persp3d

Surface plots
thigmophobe3d

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

Set up multiple figure layouts in rgl.
vertexControl

Set attributes of vertices.
rglMouse

Generate HTML code to select mouse mode.
play3d

Play animation of rgl scene
turn3d

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

3D Mesh objects
text3d

add text
writePLY

Write Stanford PLY format files
spheres3d

add sphere set shape
writeWebGL

Write scene to HTML.
rgl.primitive

add primitive set shape
spin3d

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

Controls to use with playwidget().
figWidth

Get R Markdown figure dimensions in pixels.
rgl.attrib.info

Get information about attributes of objects
extrude3d

Generate extrusion mesh
rgl.bringtotop

Assign focus to an RGL window
toggleWidget

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

Merge duplicate vertices in mesh object
sprites

add sprite set shape
rgl.useNULL

Report default use of null device.
show2d

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

generic subdivision surface method
tkpar3dsave

Modal dialog for saving par3d settings
plot3d.lm

Method for plotting simple linear fit.
matrices

Work with homogeneous coordinates
plotmath3d

Generate sprites using base graphics math plotting.
triangulate

Triangulate a two-dimensional polygon.
rgl.user2window

Convert between rgl user and window coordinates
persp3d.function

Plot a function of two variables
tkrgl

tkrgl functions
tkspin3d

Create TCL/TK controller for rgl window
persp3d.deldir

Plot a Delaunay triangulation.
rgl.snapshot

export screenshot
tkspinControl

Create a spin control in a TCL/TK window
rgl.open

3D visualization device system
rgl.init

Initializing rgl
setUserShaders

Set user-defined shaders for rgl objects.
sceneChange

Make large change to a scene from Shiny
scene3d

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

Create, select or modify a subscene.
webGLcontrols

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

Set up viewpoint
subsceneInfo

Get information on subscenes
shapelist3d

Create and plot a list of shapes