View source: R/util-empiricalfunctions.R
eecf | R Documentation |
Compute an empirical exposure curve function, with several methods for plotting, printing, computing with such an object.
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, ...)
x , object |
numeric vector of the observations for |
... |
arguments to be passed to subsequent methods, e.g.,
to the |
ylab |
label for the y-axis. |
do.points |
logical; if |
col.01line |
numeric or character specifying the color of the
horizontal lines at y = 0 and 1, see |
pch |
plotting character. |
main |
main title. |
ylim |
the y limits of the plot. |
add |
logical; if |
digits |
number of significant digits to use, see
|
Compute a continuous empirical exposure curve and returns an object
of class "eecf"
similar to what an object returned
by ecdf
.
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.
Dutang Christophe
exposureCurve
, ecdf
.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.