plot_Ages | R Documentation |
Create Age Plot
plot_Ages(object, sample_names = NULL, sample_order = NULL, ...)
object |
list or data.frame (required): Output as created by functions like AgeC14_Computation, which
is a list of class |
sample_names |
character (optional): alternative sample names used for the plotting. If the length of the provided character vector is shorter than the real number of samples, the names are recycled. |
sample_order |
numeric (optional): argument to rearrange the sample order, e.g., |
... |
further arguments to control the plot output,
standard arguments are: |
This function creates an age plot showing the mean ages along with the credible intervals. The function provides various arguments to modify the plot output, however, for an ultimate control the function returns the data.frame extracted from the input object for own plots.
The function returns a plot and the data.frame used to display the data
0.1.4
Kreutzer, S., Christophe, C., 2022. plot_Ages(): Create Age Plot. Function version 0.1.4. In: Christophe, C., Philippe, A., Kreutzer, S., Guerin, G., 2022. BayLum: Chronological Bayesian Models Integrating Optically Stimulated. R package version 0.2.1. https://CRAN.r-project.org/package=BayLum
Sebastian Kreutzer, IRAMAT-CRP2A, UMR 5060, CNRS-Université Bordeaux Montaigne (France), based on code written by Claire Christophe
AgeC14_Computation, AgeS_Computation
## load data data(DATA_C14,envir = environment()) C14Cal <- DATA_C14$C14[,1] SigmaC14Cal <- DATA_C14$C14[,2] Names <- DATA_C14$Names nb_sample <- length(Names) ## Age computation Age <- AgeC14_Computation( Data_C14Cal = C14Cal, Data_SigmaC14Cal = SigmaC14Cal, SampleNames = Names, Nb_sample = nb_sample, PriorAge = rep(c(20,60),nb_sample), Iter = 500, quiet = TRUE) ## plot output plot_Ages(Age)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.