cad | R Documentation |
Plot a dataset as a Cumulative Age Distribution (CAD), also known as a ‘empirical cumulative distribution function’.
cad(x, ...)
## Default S3 method:
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
hide = NULL,
...
)
## S3 method for class 'other'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
hide = NULL,
...
)
## S3 method for class 'detritals'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "rainbow",
hide = NULL,
...
)
## S3 method for class 'UPb'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
type = 4,
cutoff.76 = 1100,
cutoff.disc = discfilter(),
common.Pb = 0,
hide = NULL,
...
)
## S3 method for class 'PbPb'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
common.Pb = 1,
hide = NULL,
...
)
## S3 method for class 'ArAr'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
i2i = FALSE,
hide = NULL,
...
)
## S3 method for class 'KCa'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
i2i = FALSE,
hide = NULL,
...
)
## S3 method for class 'ThPb'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
i2i = TRUE,
hide = NULL,
...
)
## S3 method for class 'ThU'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [ka]",
col = "black",
Th0i = 0,
hide = NULL,
...
)
## S3 method for class 'ThPb'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
i2i = TRUE,
hide = NULL,
...
)
## S3 method for class 'ReOs'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
i2i = TRUE,
hide = NULL,
...
)
## S3 method for class 'SmNd'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
i2i = TRUE,
hide = NULL,
...
)
## S3 method for class 'RbSr'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
i2i = TRUE,
hide = NULL,
...
)
## S3 method for class 'LuHf'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
i2i = TRUE,
hide = NULL,
...
)
## S3 method for class 'UThHe'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
hide = NULL,
...
)
## S3 method for class 'fissiontracks'
cad(
x,
pch = NA,
verticals = TRUE,
xlab = "age [Ma]",
col = "black",
hide = NULL,
...
)
x |
a numerical vector OR an object of class |
... |
optional arguments to the generic |
pch |
plot character to mark the beginning of each CAD step |
verticals |
logical flag indicating if the horizontal lines of the CAD should be connected by vertical lines |
xlab |
x-axis label |
col |
if For all other data formats, the name or code for a colour to give to a single sample dataset |
hide |
vector with indices of aliquots that should be removed from the plot. |
type |
scalar indicating whether to plot the
|
cutoff.76 |
the age (in Ma) below which the
|
cutoff.disc |
discordance cutoff filter. This is an object of
class |
common.Pb |
common lead correction:
|
i2i |
‘isochron to intercept’: calculates the initial (aka
‘inherited’, ‘excess’, or ‘common’)
|
Th0i |
initial
|
Empirical cumulative distribution functions or cumulative age
distributions are the most straightforward way to visualise the
probability distribution of multiple dates. Suppose that we have a
set of n
dates t_i
. The CAD is a step function that
sets out the rank order of the dates against their numerical value:
CAD(t) = \sum_i 1(t<t_i)/n
where 1(\ast
) = 1 if \ast
is true and 1(\ast
) = 0
if \ast
is false. CADs have two desirable properties
(Vermeesch, 2007). First, they do not require any pre-treatment or
smoothing of the data. This is not the case for histograms or
kernel density estimates. Second, it is easy to superimpose several
CADs on the same plot. This facilitates the intercomparison of
multiple samples. The interpretation of CADs is straightforward but
not very intuitive. The prominence of individual age components is
proportional to the steepness of the CAD. This is different from
probability density estimates such as histograms, in which such
components stand out as peaks.
Vermeesch, P., 2007. Quantitative geomorphology of the White Mountains (California) using detrital apatite fission track thermochronology. Journal of Geophysical Research: Earth Surface, 112(F3).
kde
, radialplot
attach(examples)
cad(DZ,verticals=FALSE,pch=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.