Description Usage Arguments Value
Plot a linear fit within the bounds of the data, and insert fit stats into plot
1 2 3 4 5 6 7 8 9 | plotSegments(
y,
x,
forceIntercept = NULL,
legPos = NULL,
justMod = FALSE,
textCol = 1,
...
)
|
y |
a vector |
x |
a vector |
forceIntercept |
(default = NULL) what is the intercept value to use (useful for relationships that need to be forced through origin |
legPos |
position of the legend (which is the slope and p-value; default=NULL) other values are "topleft", "bottomleft", "topright", "bottomright". |
justMod |
if TRUE, no segment is drawn, but the model object is returned |
textCol |
color of line and text. |
... |
other graphical parameters taht will be handed to the lines function |
nothing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.