plot-methods {NiLeDAM}R Documentation

Method "plot" for Classes "oneAgeTest" and "ageTests"

Description

Display densities of the ages calculated by the function calculateAges(), as well as the common age(s) density(ies) as returned by the function tests().

Usage

## S4 method for signature 'oneAgeTest'
plot(x, y = NULL, main = "", col = "red")

Arguments

x

an object of class "oneAgeTest" or "ageTests" (see section Methods)

y

NUll

main

a character string, title of the plot

col

a character string, color of the common age(s) density(ies)

Details

The estimated densities are Gaussian, as supposed by the model described in Montel et al. (1996). Each density is referenced by its number to help identify outliers or invalid measurements.

Also note that if an object of class oneAgeTest is passed to the function, the common age(s) densities is displayed even if the test of the function tests() is rejected.

If argument col is supplied, it is used to display the density(ies) of the common age(s).

Usage

plot(x, ...)

Methods

Author(s)

Nathalie Vialaneix, nathalie.vialaneix@inrae.fr

References

Montel J.M., Foret S., Veschambre M., Nicollet C., Provost A. (1996) Electron microprobe dating of monazite. Chemical Geology, 131, 37–53.

See Also

tests(), oneAgeTest, ageTests

Examples

data(srilanka)
calculated.ages <- calculateAges(srilanka, nloops = 10)
res.tests <- tests(calculated.ages, 1, 3)
plot(res.tests, main = "Densities", col = "lightseagreen")


[Package NiLeDAM version 0.3 Index]