View source: R/plot_3d_functions.R
go3DPlot | R Documentation |
3D scatter plot with regression plane.
go3DPlot(varx, vary, varz, theTheta, thePhi, data)
varx |
name of variable on one horizontal axis. Use quotes. |
vary |
name of variable on other horizontal axis. Use quotes. |
varz |
name of variable on vertical axis. Use quotes. |
theTheta |
Theta value for viewing angle. |
thePhi |
Phi value for viewing angle. |
data |
The dataframe containing data. |
Each of the commands below produces a plot of the data and regression plane with x1 and x2 on the horizontal axes and y on the vertical axis. The first command produces a plot with viewing angle theta=50 and phi=15. The second produces a plot with viewing angle theta=60 and phi=20.
go3DPlot("x1","x2","y",50,15,data=Plot_3D_Example)
go3DPlot("x1","x2","y",60,20,data=Plot_3D_Example)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.