go3DPlot: 3D Plot

View source: R/plot_3d_functions.R

go3DPlotR Documentation

3D Plot

Description

3D scatter plot with regression plane.

Usage

go3DPlot(varx, vary, varz, theTheta, thePhi, data)

Arguments

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.

Details

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)


dnepple/tprstats documentation built on April 5, 2025, 6:18 a.m.