plot3d: plot in 3D based on rgl

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
2
3
4
plot3D(x,...)
## Default S3 method:
plot3D(x,...,add=FALSE,bbox=TRUE,axes=FALSE,
           cex=1,size=cex,col=1)

Arguments

x

an object to be plotted, e.g. a data frame or a data matrix

...

additional plotting parameters as described in rgl::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 used for dots, defaults to black.

Details

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

Value

the 3D plotting coordinates of the objects displayed, returned invisibly

Author(s)

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

See Also

rgl::points3d, graphics::plot, plot3D.rmult,

plot3D.acomp,plot3D.rcomp, plot3D.aplus,plot3D.rplus

Examples

1
2
3
4
5
6
x <- cbind(rnorm(10),rnorm(10),rnorm(10))
data(SimulatedAmounts)
if(requireNamespace("rgl", quietly = TRUE)) {
  plot3D(x)
  plot3D(sa.lognormals,cex=4,col=1:nrow(sa.lognormals))
} ## this function requires package 'rgl'

compositions documentation built on Jan. 5, 2022, 5:09 p.m.