Learn R Programming

compositions (version 2.0-0)

plot3Daplus: 3D-plot of positive data

Description

3D-plot of positive data typically in log-log-log scale. The plot is mainly an exploratory tool, and not intended for exact display of data.

Usage

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

Arguments

x

an aplus object to be plotted

parts

a numeric xor character vector of length 3 coding the columns to be plotted

additional plotting parameters as described in rgl::rgl.material

add

logical, adding or new plot

vlabs

the column names to be plotted, if missing defaults to the column names of the selected columns of X

log

logical, indicating wether to plot in log scale

bbox

logical, whether to add a bounding box

axes

logical, plot a coordinate system

col

the color used for dots, defaults to black.

Value

Called for its side effect of a 3D plot of an aplus object in an rgl plot. It invisibly returns the 3D plotting coordinates of the objects displayed

Details

If log is TRUE the data is plotted in ilt coordinates. If coors is true, coordinate arrows are plotted of length 1 and in the (aplus-)mean of the dataset.

If log is FALSE the data is plotted with plot.rplus

See Also

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

plot3D.acomp,plot3D.rcomp, plot3D.rplus

Examples

Run this code
# NOT RUN {
data(SimulatedAmounts)
plot3D(aplus(sa.lognormals),size=2)
# }

Run the code above in your browser using DataLab