Learn R Programming

mbbefd (version 0.8.12)

eecf: Empirical Exposure Curve Function

Description

Compute an empirical exposure curve function, with several methods for plotting, printing, computing with such an object.

Usage

eecf(x)

# S3 method for eecf plot(x, ..., ylab="Gn(x)", do.points=TRUE, col.01line = "gray70", pch = 19, main=NULL, ylim=NULL, add=FALSE)

# S3 method for eecf lines(x, ...)

# S3 method for eecf print(x, digits= getOption("digits") - 2, ...)

# S3 method for eecf summary(object, ...)

Value

For eecf, a function of class "eecf", inheriting from the "function" class.

For the summary method, a summary of the knots of object with a "header" attribute.

Arguments

x, object

numeric vector of the observations for eecf; for the methods, an object of class "eecf".

...

arguments to be passed to subsequent methods, e.g., to the plot method.

ylab

label for the y-axis.

do.points

logical; if TRUE, also draw points at the (xlim restricted) knot locations.

col.01line

numeric or character specifying the color of the horizontal lines at y = 0 and 1, see colors.

pch

plotting character.

main

main title.

ylim

the y limits of the plot.

add

logical; if TRUE add to an already existing plot.

digits

number of significant digits to use, see print.

Author

Dutang Christophe

Details

Compute a continuous empirical exposure curve and returns an object of class "eecf" similar to what an object returned by ecdf.

See Also

exposureCurve, ecdf.

Examples

Run this code

x <- c(0.4756816, 0.1594636, 0.1913558, 0.2387725, 0.1135414, 0.7775612,
  0.6858736, 0.4340655, 0.3181558, 0.1134244)

#print
eecf(x)

#summary
summary(eecf(x))

#plot
plot(eecf(x))

#lines
lines(eecf(x[1:4]), col="red")

Run the code above in your browser using DataLab