Learn R Programming

compositions (version 1.10-1)

plot3D: plot in 3D based on rgl

Description

3-dimensional plots, which can be rotated and zoomed in/out

Usage

plot3D(x,...)
## S3 method for class 'default':
plot3D(x,\dots,add=FALSE,bbox=TRUE,axes=FALSE,cex=1,size=cex,col=par("col"))

Arguments

x
an object to be plotted, e.g. a data frame or a data matrix
...
additional plotting parameters as described in rgl.material
add
logical, adding or new plot
bbox
logical, whether to add a bounding box
axes
logical, whether to plot an axes of coordinates
cex
size of the plotting symbol
size
size of the plotting symbol, only size or cex should be used
col
the color

Value

  • Nothing

Details

The function provides a generic interface for 3-dimensional plotting in analogy to the 2d-plotting interface of plot, using rgl package.

See Also

points3d, plot, plot3D.rmult, plot3D.acomp,plot3D.rcomp,, plot3D.aplus,plot3D.rplus

Examples

Run this code
x <- cbind(rnorm(10),rnorm(10),rnorm(10))
plot3D(x)
data(SimulatedAmounts)
plot3D(sa.lognormals,cex=4,col=1:nrow(sa.lognormals))

Run the code above in your browser using DataLab