The bcp_plot_function.R plots the results of two different bayesian change-point analyses in one single plot. Here I provide two example files illustrating the function using artificial datasets.
Change-point analyses of a sequence with a change in mean and with constant sediment-accumulation rates.
Change-point analyses of a sequence without a change in mean, but with a substantial change in sediment-accumulation rates that causes the emergence of a change point.
Jack Longman, Daniel Veres, Walter Finsinger, Vasile Ersek(2018) Exceptionally high levels of lead pollution in the Balkans from the Early Bronze Age to the Industrial Revolution. PNAS, 115, E5661-E5668. https://doi.org/10.1073/pnas.1721546115
and the SI file