Learn R Programming

RChronoModel (version 0.1)

PhasePlot: Plot of the marginal posterior densities of a phase

Description

This function draws the marginal posterior densities of the beginning and the end of a phase

Usage

PhasePlot(PhaseBeginning_chain, PhaseEnd_chain, level = 0.95,
  title = "Phase marginal posterior densities", colors = T,
  GridLength = 1024)

Arguments

PhaseBeginning_chain
numeric vector containing the output of the MCMC algorithm for the beginning of the phase
PhaseEnd_chain
numeric vector containing the output of the MCMC algorithm for the end of 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 beginning and the end of a phase and adds several summary statistics (mean, Credible interval, Time range)

Examples

Run this code
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)

Run the code above in your browser using DataLab