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

Standard plots with legends

Functions for creating standard R plots with continuous or categorical legends.

splot()
Add a continuous color scale legend to an standard R plot
spoints()
Scatter plot with a color scale
simage()
Image plot with a color scale
spersp()
Perspective plot with a color scale
fplot()
Add a categorical legend to an standard R plot
fpoints()
Scatter plot with a categorical legend
par.reset()
Restore graphical parameters

‘rgl’ plots with legends

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

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

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
vb2tri3d()
Value per triangle from values at vertices
addviewpoint3d() setviewpoint3d() lsviewpoints3d() rmviewpoints3d() getviewpoints3d() getview3d() setview3d()
Work with 'rgl' viewpoints
setmouse3d() pan3d() dbltrack3d()
Utilities for setting the 'rgl' mouse actions
axis3()
3D axis with control over tick length, tick angle and label position

Data

Examples of data and 3d objects.

volcanom
Surface mesh of Auckland's Maunga Whau volcano