powered by
Plot a regresion model on a 2-D plot. The predictor x should be one-dimensional.
x
regplot(model, x, y, margin = 0.1, ...)
The model to be plotted.
The predictor vector.
vector
The response vector.
A margin parameter.
Other graphical parameters
# NOT RUN { require (datasets) data (cars) model = POLYREG (cars [, -2], cars [, 2]) regplot (model, cars [, -2], cars [, 2]) # }
Run the code above in your browser using DataLab