cable.lines: Overlay Bent Cable On Existing Plot

Description Usage Arguments Note Author(s) References See Also Examples

View source: R/code.r

Description

A user-specified bent cable is added to an existing plot. Its intended use is for superimposing a bent-cable regression fit to a scatterplot of the data. The transition is marked by vertical lines at τ and τ\pmγ.

Usage

1
cable.lines(x, theta, col = "black", lwd = 1, lty = 2, fit.lty = 1)

Arguments

x

A numeric vector of design points or the range of these design points on the existing scatterplot.

theta

A vector of bent-cable coefficients, in the form of c(b0,b1,b2,tau,gamma).

col, lwd

Graphical parameters for plotting the bent-cable function and transition.

lty

Graphical parameter for marking the transition.

fit.lty

Graphical parameter of type lty for plotting the bent-cable function.

Note

This function is intended for internal use by bentcable.ar.

Author(s)

Grace Chiu

References

See the bentcableAR package references.

See Also

fullcable.t, par, lines

Examples

1
2
3
4
data(sockeye)

	plot(sockeye)
	cable.lines( sockeye$year, c(6.6,.08,-.68,92,6.01) )

bentcableAR documentation built on May 30, 2017, 2:11 a.m.