Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

regplot

Plot function for a regression model


Description

Plot a regresion model on a 2-D plot. The predictor x should be one-dimensional.

Usage

regplot(model, x, y, margin = 0.1, ...)

Arguments

model

The model to be plotted.

x

The predictor vector.

y

The response vector.

margin

A margin parameter.

...

Other graphical parameters

Examples

require (datasets)
data (cars)
model = POLYREG (cars [, -2], cars [, 2])
regplot (model, cars [, -2], cars [, 2])

fdm2id

Data Mining and R Programming for Beginners

v0.9.5
GPL-3
Authors
Alexandre Blansché [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.