--- title: "Import MCMC Samples" author: "A. Philippe, M.-A. Vibet and N. Frerebeau" date: "2025-09-22" output: rmarkdown::html_vignette: number_sections: yes toc: true bibliography: bibliography.bib vignette: > %\VignetteIndexEntry{Import MCMC Samples} %\VignetteEncoding{UTF-8} %\VignetteEngine{knitr::rmarkdown} editor_options: chunk_output_type: console --- This vignette uses data available through the [**ArchaeoData**](https://github.com/ArchaeoStat/ArchaeoData) package which is available in a [separate repository](https://archaeostat.r-universe.dev). **ArchaeoData** provides MCMC outputs from ChronoModel, OxCal and BCal. ``` r ## Install data package install.packages("ArchaeoData", repos = "https://archaeostat.r-universe.dev") ``` ``` r ## Load package library(ArchaeoPhases) ``` # ChronoModel Two different files are generated by ChronoModel: `Chain_all_Events.csv` that contains the MCMC samples of each event created in the modeling, and `Chain_all_Phases.csv` that contains all the MCMC samples of the minimum and the maximum of each group of dates if at least one group is created. ``` r ## Construct the path to the data path_events <- file.path("chronomodel", "ksarakil", "Chain_all_Events.csv") output_events <- system.file(path_events, package = "ArchaeoData") ## Read events from ChronoModel chrono_events <- read_chronomodel_events(output_events) ## Plot events plot(chrono_events) ```
plot of chunk read-chronomodel-events
plot of chunk read-chronomodel-phases
plot of chunk read-oxcal
plot of chunk oxcal-phases
plot of chunk bcal-phases