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
 4
 5
 6
 7
 8
 9
10
expFitPred(
  simpleformula,
  data,
  xval,
  xlab = NULL,
  ylab = NULL,
  newxlim = NULL,
  newylim = NULL,
  showpred = TRUE
)

Arguments

simpleformula

a designation for the model formula in y ~ x notation. Must be in formula notation–see details.

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?

See Also

expFit linFitPred logisticFitPred

Examples

1
2
3
4
5
data(wolf)
wolf <- wolf %>%
  mutate(Time = Year - min(Year))
expFit(Number ~ Time, data=wolf)
expFitPred(Number ~ Time, data=wolf, xval=6)

MichaelJMahometa/OnRampsR2 documentation built on Feb. 12, 2020, 12:32 a.m.