Learn R Programming

nlstimedist (version 1.1.4)

tdCdfPlot: Plot the timedist PDF or CDF

Description

Given a model (or models) of class timedist, produce a cumulative distribution plot for each of them.

Usage

tdCdfPlot(..., S = NULL, xVals = NULL)

tdPdfPlot(..., S = NULL, xVals = NULL)

Arguments

...

A model (or a list of models) of class timedist.

S

Scaling factor for the PDF.

xVals

A sequence of values between the x limits (x1, x2) of the plot.

Examples

Run this code
# NOT RUN {
tdTilia <- tdData(tilia, x = "Day", y = "Trees")
model <- timedist(data = tdTilia, x = "Day", y = "propMax", r = 0.1, c = 0.5,
                  t = 120)
tdCdfPlot(model)

tdPdfPlot(model)

# }

Run the code above in your browser using DataLab