Learn R Programming

RChronoModel (version 0.1)

MultiSuccessionPlot: Successive Phases Density Plots (for phases in temporal order constraint)

Description

This functions draws a plot of the densities of several successive phases and adds several statistics (mean, CI, HPDR)

Usage

MultiSuccessionPlot(file, position, level = 0.95, dec = '.', sep=',', comment.char='#',
  title = "Phases marginal posterior densities", GridLength = 1024)

Arguments

file
name of the CSV file containing the output of the MCMC algorithm of all phases of interest
position
numeric vector containing the position of the phases of interest in the CSV file
level
probability corresponding to the level of confidence
dec
the character used in the file for decimal points for the use of read.csv()
sep
the field separator character for the use of read.csv()
comment.char
a character vector of length one containing a single character or an empty string for the use of read.csv()
title
title of the graph
GridLength
length of the grid used to estimate the density

Value

  • Returns a plot of all densities and adds several summary statistics

Examples

Run this code
data(Phases)
  write.csv(Phases, "data.csv")
  MultiSuccessionPlot("data.csv", c(4,2), 0.95)
  MultiSuccessionPlot("data.csv", c(4,2), 0.90, title = "Succession of phase 1 and phase 2")

Run the code above in your browser using DataLab