eecf: Empirical Exposure Curve Function

View source: R/util-empiricalfunctions.R

eecfR Documentation

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 class 'eecf'
plot(x, ..., ylab="Gn(x)", do.points=TRUE, 
     col.01line = "gray70", pch = 19, main=NULL, ylim=NULL, 
     add=FALSE)

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

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

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

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.

Details

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

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.

Author(s)

Dutang Christophe

See Also

exposureCurve, ecdf.

Examples


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")

spedygiorgio/mbbefd documentation built on Sept. 2, 2023, 1:55 p.m.