Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 class '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.

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

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

Author(s)

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

See Also

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

Examples

data(SimulatedAmounts)
if(requireNamespace("rgl", quietly = TRUE)) {
  plot3D(aplus(sa.lognormals),size=2)
} ## this function requires package 'rgl'

compositions

Compositional Data Analysis

v2.0-1
GPL (>= 2)
Authors
K. Gerald van den Boogaart <boogaart@hzdr.de>, Raimon Tolosana-Delgado, Matevz Bren
Initial release
2021-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.