cable.lines | R Documentation |
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γ.
cable.lines(x, theta, col = "black", lwd = 1, lty = 2, fit.lty = 1)
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
|
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 |
This function is intended for internal use by bentcable.ar
.
Grace Chiu
See the bentcableAR
package references.
fullcable.t
, par
,
lines
data(sockeye) plot(sockeye) cable.lines( sockeye$year, c(6.6,.08,-.68,92,6.01) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.