plot3d.smacof {smacof} | R Documentation |
These methods produce static and dynamic 3D configuration plots for SMACOF models.
## S3 method for class 'smacof': plot3d(x, plot.dim = c(1,2,3), sphere = TRUE, xlab, ylab, zlab, col, main, bgpng = NULL, ax.grid = TRUE, sphere.rgl = TRUE,...) ## S3 method for class 'smacofR': plot3d(x, plot.dim = c(1,2,3), joint = FALSE, xlab, ylab, zlab, col, main, bgpng = NULL, ax.grid = TRUE, sphere.rgl = TRUE,...) ## S3 method for class 'smacofID': plot3d(x, plot.dim = c(1,2,3), xlab, ylab, zlab, col, main, bgpng = NULL, ax.grid = TRUE, sphere.rgl = TRUE,...) ## S3 method for class 'smacof': plot3dstatic(x, plot.dim = c(1,2,3), main, xlab, ylab, zlab, col, ...) ## S3 method for class 'smacofR': plot3dstatic(x, plot.dim = c(1,2,3), main, xlab, ylab, zlab, col, joint = FALSE, ...) ## S3 method for class 'smacofID': plot3dstatic(x, plot.dim = c(1,2,3), main, xlab, ylab, zlab, col, ...)
x |
Object of class "smacof" , "smacofR" , and "smacofID" (see details) |
plot.dim |
Vector of length 3 with dimensions to be plotted. |
sphere |
Spherical SMACOF: Whether sphere should be plotted or not. |
joint |
Rectangular SMACOF: If TRUE , the configurations are plotted jointly. |
main |
Plot title. |
xlab |
Label of x-axis. |
ylab |
Label of y-axis. |
zlab |
Label of z-axis. |
col |
Color of the text labels. |
bgpng |
Background image from rgl library; NULL for white background |
ax.grid |
If TRUE , axes grid is plotted. |
sphere.rgl |
If TRUE , rgl sphere (background) is plotted. |
... |
Further plot arguments passed: see plot |
in package scatterplot3d
for detailed information.
smacofSym()
creates object of class "smacof"
, whereas smacofRect()
produces
"smacofR"
and smacofIndDiff()
generates "smacofID"
.
For smacofIndDiff()
the configuration plot represents the group stimulus space (i.e., joint configurations).
## 3D plot for spherical SMACOF data(trading) res <- smacofSphere.dual(trading, ndim = 3) plot3d(res, plot.type = "confplot", sphere = TRUE, sphere.rgl = FALSE) plot3dstatic(res) ## Group stimulus space for rectangular SMACOF data(breakfast) res <- smacofRect(breakfast, ndim = 3) plot3d(res, joint = TRUE)