3-dimensional plots, which can be rotated and zoomed in/out
# S3 method for rplus
plot3D(x,parts=1:3,...,vlabs=NULL,add=FALSE,bbox=FALSE,
cex=1,size=cex,axes=TRUE,col=1)
an rplus object to be plotted
the variables in the rplus object to be plotted
additional plotting parameters as described in
rgl::rgl.material
the labels used for the variable axes
logical, adding or new plot
logical, whether to add a bounding box
size of the plotting symbol (as character expansion factor)
size of the plotting symbol, only size or cex should be used
logical, whether to plot a coordinate cross
the color used for dots, defaults to black.
the 3D plotting coordinates of the objects displayed, returned invisibly
The function plots rplus objects in a 3D coordinate system, in an rgl plot.
kingTetrahedron
rgl::points3d
,
graphics::plot
,
plot3D
,
plot3D.rmult
,
# NOT RUN {
x <- cbind(rnorm(10),rnorm(10),rnorm(10))
data(SimulatedAmounts)
if(requireNamespace("rgl", quietly = TRUE)) {
plot3D(rplus(exp(x)))
plot3D(rplus(sa.lognormals),cex=4,col=1:nrow(sa.lognormals))
} ## this function requires package 'rgl'
# }
Run the code above in your browser using DataLab