plot3d.smacof {smacof}R Documentation

3D SMACOF plots

Description

These methods produce static and dynamic 3D configuration plots for SMACOF models.

Usage

## 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, ...)

Arguments

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.

Details

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).

See Also

plot.smacof

Examples


## 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)


[Package smacof version 0.9-5 Index]