Learn R Programming

iplots (version 1.1-8)

iabline: Add a straight line to the current iPlot.

Description

This function adds one straight line through the current iPlot.

Usage

iabline(a = NULL, b = NULL, reg = NULL, coef = NULL, ..., plot = iplot.cur())

Arguments

a, b

the intercept and slope

coef

a vector of length two giving the intercept and slope

reg

an object with a coef component

...

object options for iobj.opt

plot

plot to which this line is to be added

Value

Resulting iObject.

Details

Typical usages are

  iabline(a, b, ...)
  iabline(coef=, ...)
  iabline(reg=, ...)

See Also

ilines, iobj.opt