This function makes a 3D plot of the data and the regression function. The user has the choice between different methods to calculate the coefficients for the regression model.
revolutions: if the plot should be viewed from different angles
bg.col, axis.col, surface.col, point.col, text.col, grid.col: define the colour for the background, axis,...
pos.res.col, neg.res.col: colour for positive and negativ residuals
fogtype: describes the fogtype, see rgl.bg
residuals: if the residuals should be plotted
surface: if the regression function should be plotted or just the points
grid: if TRUE, the grid is plotted
grid.lines: number of lines in the grid
df.smooth: if fit=smooth, the number of degrees of freedom
df.additive: if fit=additive, the number of degrees of freedom
sphere.size: a value for calibrating the size of the sphere
threshold: the minimum size of the sphere, if the size is smaller than the threshold a point is plotted
speed: if revolutions>0, how fast you make a 360 degree turn
fov: field-of-view angle, see rgl.viewpoint
fit: which method should be used for the model; "linear", "quadratic", "smooth" or "additive"
groups: define groups for the points
parallel: if groups is not NULL, a parallel shift in the model is made
model.summary: if the summary should be returned
Returns
No return value, creates a plot.
Details
The user can choose between a linear, quadratic, smoothed or additve model to calculate the coefficients.
References
C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.