plotSegments: Plot a linear fit within the bounds of the data, and insert...

Description Usage Arguments Value

View source: R/plotSegments.R

Description

Plot a linear fit within the bounds of the data, and insert fit stats into plot

Usage

1
2
3
4
5
6
7
8
9
plotSegments(
  y,
  x,
  forceIntercept = NULL,
  legPos = NULL,
  justMod = FALSE,
  textCol = 1,
  ...
)

Arguments

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

Value

nothing


taddallas/radTad documentation built on May 15, 2021, 5:54 a.m.