PhasePlot: Plot of the marginal posterior densities of a phase

Description Usage Arguments Value Author(s) Examples

View source: R/prog.R

Description

This function draws the marginal posterior densities of the minimum and the maximum of the dates included in the phase

Usage

1
2
3
PhasePlot(PhaseMin_chain, PhaseMax_chain, level = 0.95,
  title = "Characterisation of a phase", colors = T,
  GridLength = 1024)

Arguments

PhaseMin_chain

numeric vector containing the output of the MCMC algorithm for the minimum of the dates included in the phase

PhaseMax_chain

numeric vector containing the output of the MCMC algorithm for the maximum of the dates included in the phase

level

probability corresponding to the level of confidence used for the credible interval and the time range

title

title of the graph

colors

if TRUE -> use of colors in the graph

GridLength

length of the grid used to estimate the density

Value

A plot with the marginal posterior densities of the minimum and the maximum of the dates included in the phase and adds several summary statistics (mean, Credible interval, Time range)

Author(s)

Anne Philippe <Anne.Philippe@univ-nantes.fr> and

Marie-Anne Vibet <Marie-Anne.Vibet@univ-nantes.fr>

Examples

1
2
3
4
  data(Phases); attach(Phases)

  PhasePlot(Phase.1.alpha, Phase.1.beta, 0.95, "Densities of Phase 1")
  PhasePlot(Phase.2.alpha, Phase.2.beta, 0.95, "Densities of Phase 2",colors = FALSE)

Example output



RChronoModel documentation built on May 1, 2019, 10:06 p.m.