Learn R Programming

litterfitter (version 0.1.4)

plot.litfit: Plot Decomposition Trajectory and Curve Fit

Description

Plot a Litter Decomposition Trajectory with Curve Fit

Usage

# S3 method for litfit
plot(x, formulae.cex = 1, ...)

Value

A plot visualizing the data and curve fit from a litfit object. The result is returned invisibly.

Arguments

x

A litfit object.

formulae.cex

Size scaling factor for the formula display on the plot.

...

Additional arguments passed to plot.default.

Author

Will Cornwell

Details

Visualizes the litter decomposition trajectory data and its curve fit derived from a litfit object. This function is designed to provide a quick visual check on the adequacy of model fitting.

The plot displays data points from the litfit object along with the curve fit. The formula for the fit is displayed on the plot.

See Also

fit_litter for generating litfit objects.

Examples

Run this code
fit <- fit_litter(
  time=c(0,1,2,3,4,5,6),
  mass.remaining=c(1,0.9,1.01,0.4,0.6,0.2,0.01),
  'neg.exp',
  iters=250
)
plot(fit)

Run the code above in your browser using DataLab