Skip to contents
legendplot-package legendplot
legendplot: Standard and 'rgl' Plots with Legends

Standard plots with legends

Functions for creating standard R plots with legends.

splot()
Add a continuous color scale legend to an standard R plot
fplot()
Add a categorical legend to an standard R plot
simage()
Image plot with a color scale
spersp()
Perspective plot with a color scale
spoints()
Scatter plot with a color scale

‘rgl’ plots with legends

Functions for creating ‘rgl’ 3d plots with legends.

splot3d()
Add a continuous color scale legend to an 'rgl' plot
fplot3d()
Add a categorical legend to an 'rgl' plot
fshade3d()
Draw 3D mesh objects adding a categorical legend
sshade3d()
Draw 3D mesh objects adding a continuous color scale

Color tools

Color palettes and functions for assigning colors to values.

scolor() jet.colors() hot.colors()
Utilities for plotting with a continuous color scale
fcolor() hcld.colors() cat.colors()
Utilities for plotting with a categorical legend

‘rgl’ tools

Utilities for working with the ‘rgl’ package.

new3d()
New 'rgl' plot
vb2tri()
Value per triangle from values at vertices
add.viewpoint() set.viewpoint() ls.viewpoints() rm.viewpoints() get.viewpoints() getview3d() setview3d()
Work with 'rgl' viewpoints
setmousemode() pan3d()
Utilities for setting the 'rgl' mouse actions
axis3()
3D axis with control over tick length and label position

Data

Examples of data and 3d objects.

volcanom
Surface Mesh of Auckland's Maunga Whau Volcano