Learn R Programming

grt (version 0.1.0)

plot3d.glc: plot3d Method for Class 'glc'

Description

plot the fitted 3D data set and linear decision boundary.

Usage

## S3 method for class 'glc':
plot3d(x, fitdb = TRUE, initdb = FALSE, 
    lims = NULL, alpha = .5, \dots)

Arguments

x
object of class glc
fitdb
logical. If TRUE, the fitted decision bound will be plotted. Default to TRUE
initdb
logical. If TRUE, the decision bound specified by the initial parameters will be plotted. Default to FALSE
lims
column matrix of the x, y, and z limits of the plot
alpha
alpha value for the descision bound surface(s) ranging form 0 (fully transparent) to 1 (opaque). Default is .5.
...
further arguments.

Details

This function produces a 3D scatter plot of data matrix in the x and (optionally) descision boundary specified within (i.e., x$par and/or x$initpar), using points3d and quads3d in the rgl package respectively.

References

Daniel Adler, Oleg Nenadic and Walter Zucchini (2003) RGL: A R-library for 3D visualization with OpenGL

See Also

plot.glc, plot3d.gqc

Examples

Run this code
data(subjdemo_3d)
fit.3dl <- glc(response ~ x + y + z, data=subjdemo_3d, 
    category=subjdemo_3d$category, zlimit=7)
plot3d(fit.3dl)

Run the code above in your browser using DataLab