Learn R Programming

wrMisc (version 1.15.3.1)

.datSlope: 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
)

Value

numeric vector with intercept and slope, optional plot

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

See Also

append; lrbind

Examples

Run this code
.datSlope(c(3:6))

Run the code above in your browser using DataLab