plot.cardiFit: Plot Method for cardiFit Objects

Description Usage Arguments Details See Also Examples

Description

This function is a top-level function to visualize cardinal date objects fitted with fitweibull4 and fitweibull6.

Usage

1
2
## S3 method for class 'cardiFit'
plot(x, y = NULL, xmin = 0, xmax = 365, quantile = 0.05, symmetric = FALSE, ...)

Arguments

x

object of class cardiFit resulting from a call to fitweibull6 or fitweibull4,

y

not used, for compatibility with plot only,

xmin

left boundary (in day of year) of the integral under the curve,

xmax

right boundary (in day of year) of the integral under the curve,

quantile

two-sided quantile (percentage of integral) which defines beginning and end of the peak,

symmetric

if (TRUE), quantiles are calculated for the whole area under the curve, otherwise for each of the branches separately,

...

other arguments passed to plot.default.

Details

See CDW for a detailed description of parameters.

See Also

weibull4, weibull6, fitweibull, peakwindow, cardidates

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## create some test data
set.seed(123)
x <- seq(0, 360, length = 20)
y <- abs(rnorm(20, mean = 1, sd = 0.1))
y[5:10] <- c(2, 4, 7, 3, 4, 2)

## fit Weibull function with 6 free parameters
res <- fitweibull6(x, y)

## see the results
plot(res)
summary(res)

cardidates documentation built on May 29, 2017, 3:36 p.m.

Search within the cardidates package
Search all R packages, documentation and source code