regplot | R Documentation |
Plot a regresion model on a 2-D plot. The predictor x
should be one-dimensional.
regplot(model, x, y, margin = 0.1, ...)
model |
The model to be plotted. |
x |
The predictor |
y |
The response |
margin |
A margin parameter. |
... |
Other graphical parameters |
require (datasets)
data (cars)
model = POLYREG (cars [, -2], cars [, 2])
regplot (model, cars [, -2], cars [, 2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.