.datSlope {wrMisc}R Documentation

Model linear regression and optional plot

Description

This function allows to model a linear regression and optionally to plot the results

Usage

.datSlope(
  dat,
  typeOfPlot = "sort",
  toNinX = FALSE,
  plotData = FALSE,
  silent = FALSE,
  debug = FALSE,
  callFrom = NULL
)

Arguments

dat

(vector or matrix) main input

typeOfPlot

(character)

toNinX

(logical)

plotData

(logical)

silent

(logical) suppress messages

debug

(logical) display additional messages for debugging

callFrom

(character) allow easier tracking of messages produced

Value

numeric vector with intercept and slope, optional plot

See Also

append; lrbind

Examples

.datSlope(c(3:6))

[Package wrMisc version 1.15.0.3 Index]