linFitPred: Linear Fit and plot of data with a predicted value

Description Usage Arguments Examples

Description

Show where a given predicted value will occur, give an input of x.

Usage

1
2
3
linFitPred(x, y, xval, xlab = deparse(substitute(x)),
  ylab = deparse(substitute(y)), newxlim = NULL, newylim = NULL,
  showpred = TRUE)

Arguments

x

a designation for a variable on the x-axis. Can be a vector or object.

y

a designation for a variable on the y-axis. Can be a vector or object.

xval

a value of x that you wish to see a predicted value for.

xlab

optional. Text for x-axis title label.

ylab

optional. Text for y-axis title label.

newxlim

optional. Custom limits for the x axis.

newylim

optional. Custom limits for the y axis.

showpred

logical. Should the predicted point value be plotted on the graph?

#' @seealso linFit expFitPred logisticFitPred

Examples

1
2
3
4
data(wolf)
wolf$Time <- wolf$Year - min(wolf$Year)
linFit(wolf$Time, wolf$Number)
linFitPred(wolf$Time, wolf$Number, 6)

MichaelJMahometa/OnRampsR documentation built on Feb. 12, 2020, 12:31 a.m.