MultiPhasePlot: Plot of the marginal posterior densities of several phases

Description Usage Arguments Value Author(s) Examples

View source: R/prog.R

Description

Draws a plot with the marginal posterior densities of the minimum and the maximum of the dates included in each phase. No temporal order between phases is required.

Usage

1
2
MultiPhasePlot(data, position_minimum, position_maximum = position_minimum+1,
level = 0.95,  title = "Phases marginal posterior densities")

Arguments

data

dataframe containing the output of the MCMC algorithm

position_minimum

numeric vector containing the column number corresponding to the minimum of the dates included in each phase

position_maximum

numeric vector containing the column number corresponding to the maximum of the dates included in each phase. By default, position_maximum = position_minimum + 1.

level

probability corresponding to the level of confidence

title

title of the graph

Value

Draws a plot with the marginal posterior densities of the minimum and the maximum of the dates included in each phase and adds the time range of each phase.

Author(s)

Anne Philippe <[email protected]> and

Marie-Anne Vibet <[email protected]>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  # Data extracted from ChronoModel software
  data(Phases)
  
  # List of the name of the phases 
  names(Phases)
  
  # Stipulating position_maximum
  MultiPhasePlot(Phases, c(4,2), c(5,3), title = "Succession of phase 1 and phase 2")
  
  # In this case, equivalent to 
  MultiPhasePlot(Phases, c(4,2), title = "Succession of phase 1 and phase 2")

RChronoModel documentation built on May 29, 2017, 12:38 p.m.