Learn R Programming

litterfitter (version 0.1.4)

plot_multiple_fits: Plot multiple fits on one graph with model selection results displayed

Description

Plot multiple fits of decomposition trajectories on one graph with model selection results displayed

Usage

plot_multiple_fits(time,mass.remaining,model,color,iters,bty,...)

Value

plot of multiple fits, returns invisibly

Arguments

time

vector of time points

mass.remaining

vector of mass remaining

model

vector of models to fit and plot (see fit_litter)

color

a vector of colors the same length as the number of models

iters

parameter passed to fit_litter

bty

bty

...

additional parameters passed to plot

Author

Liu Guofang

Details

this function is designed to compare a variety of curve shapes visually and with AIC and BIC simultaneously

See Also

fit_litter plot.litfit

Examples

Run this code
data(pineneedles,package='litterfitter')

plot_multiple_fits(time = pineneedles$Year,
mass.remaining = pineneedles$Mass.remaining,
bty = 'n', model = c('neg.exp', 'weibull'),
xlab = 'Time', ylab = 'Proportion mass remaining',iters=200)


Run the code above in your browser using DataLab