plot_2vars: Function to plot three variables in 3d plot

Description Usage Arguments

View source: R/Plotting.R

Description

Creates a 3d plot using the scatter3D function from the plot3D package Predictions from model can be provided as well to plot the prediction plane

Usage

1
2
3
plot_2vars(x1, x1_label, x2, x2_label, y, y_label, intercept = NULL,
  x1_coef = NULL, x2_coef = NULL, grid.lines = 20, theta = 30,
  phi = 30)

Arguments

x1

Values for first independent variable (x-parameter)

x1_label

Label for first independent variable

x2

Values for second independent variable (y-parameter)

x2_label

Label for second independent variable

y

Values for dependent variable (z-paramter)

y_label

Label for dependent variable

intercept

Coefficient for the intercept of the linear model

x1_coef

Coefficient for x1 of the linear model

grid.lines

Number of gridlines for the prediction plane

theta

Angle 1 (default 30)

phi

Angle 2 (default 30)

x1_coef

Coefficient for x2 of the linear model


urskalbitzer/RTools documentation built on Jan. 11, 2020, 2:59 p.m.