plot-methods | R Documentation |
"plot"
for Classes "oneAgeTest"
and "ageTests"
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()
.
## S4 method for signature 'oneAgeTest'
plot(x, y = NULL, main = "", col = "red")
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) |
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).
plot(x, ...)
signature(object = "oneAgeTest")
: an object of type
oneAgeTest
as produced by the function
tests()
.
...
: further arguments passed to the function plot()
.
signature(object = "ageTests")
: an object of type
ageTests
as produced by the function
tests()
.
...
: further arguments passed to the function plot()
.
Nathalie Vialaneix, nathalie.vialaneix@inrae.fr
Montel J.M., Foret S., Veschambre M., Nicollet C., Provost A. (1996) Electron microprobe dating of monazite. Chemical Geology, 131, 37–53.
tests()
, oneAgeTest
, ageTests
data(srilanka)
calculated.ages <- calculateAges(srilanka, nloops = 10)
res.tests <- tests(calculated.ages, 1, 3)
plot(res.tests, main = "Densities", col = "lightseagreen")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.