expFitPred: Exponential Fit and plot of data with a predicted value

Description Usage Arguments See Also Examples

Description

Show where a given predicted value will occur, give an input of x (exponential models).

Usage

1
2
3
expFitPred(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

See Also

expFit linFitPred logisticFitPred

Examples

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

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