# Scatter3DDialog

##### Rcmdr 3D Scatterplot Dialog

This dialog sets up a call to the `scatter3d`

function to draw a
three-dimensional scatterplot.

- Keywords
- hplot

##### Details

The explanatory variables provide the "horizontal" and "out-of-screen" axes of the scatterplot,
the response variable provides the "vertical" axis.
Data points are represented as spheres or points,
depending upon the number of observations.
Several regression surfaces can be
plotted: a linear least-squares surface; a full quadratic least-squares surface
with squared and cross-product terms; a "smooth" regression surface --- either a
smoothing spline, if no degrees of freedom are specified (in which case the
`gam`

function selects the df by generalized cross validation),
or a fixed-df regression spline; an additive-regression surface (also fit by `gam`

),
with either smoothing spline or regression spline components (again selected according
to the specification of degrees of freedom). If only one surface is fit, then residuals are
plotted as red (negative) and green (positive) lines from the surface to the points.
You can specify a factor defining groups by pressing the *Plot by groups* button. A
separate surface or set of surfaces is plotted for each level of the groups factor. These
surfaces can be constrained to be parallel.
The completed plot can be manipulated with the mouse: Click, hold, drag the left mouse button to rotate
the display; click, hold, and drag the right button to zoom in and out.
You have to install the `rgl`

and `mgcv`

packages to produce 3D plots. The `rgl`

package is not yet available on CRAN,
but can be obtained at `mgcv`

package is one of the recommended R packages.

##### See Also

*Documentation reproduced from package Rcmdr, version 0.9-4, License: GPL version 2 or newer*