Learn R Programming

R330 (version 1.0)

reg3d: 3d plot of data

Description

plots 3 variables on x,y,z axes and draws fitted plane

Usage

reg3d(data, wire = FALSE)

Arguments

data
a data frame, with the first three columns containing the values of x, y and z
wire
If TRUE draws a grid as a reference plane, if FALSE returns a solid reference plane

Examples

Run this code
data(fatty.df)
reg3d(fatty.df,wire=TRUE)

data(rubber.df)
reg3d(rubber.df)

Run the code above in your browser using DataLab