compositions (version 1.40-2)

plot3Drplus: plot in 3D based on rgl

Description

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

Usage

# S3 method for rplus
plot3D(x,parts=1:3,...,vlabs=NULL,add=FALSE,bbox=FALSE,
                           cex=1,size=cex,axes=TRUE,col=1)

Arguments

x

an rplus object to be plotted

parts

the variables in the rplus object to be plotted

additional plotting parameters as described in rgl.material

vlabs

the labels used for the variable axes

add

logical, adding or new plot

bbox

logical, whether to add a bounding box

cex

size of the plotting symbol (as character expansion factor)

size

size of the plotting symbol, only size or cex should be used

axes

logical, whether to plot a coordinate cross

col

the color used for dots, defaults to black.

Value

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

Details

The function plots rplus objects in a 3D coordinate system, in an rgl plot.

See Also

points3d, plot, plot3D.rmult,

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

Examples

Run this code
# NOT RUN {
x <- cbind(rnorm(10),rnorm(10),rnorm(10))
plot3D(rplus(exp(x)))
data(SimulatedAmounts)
plot3D(rplus(sa.lognormals),cex=4,col=1:nrow(sa.lognormals))
# }

Run the code above in your browser using DataLab