PhaseDurationPlot {ArchaeoPhases}R Documentation

Plot the duration of a group

Description

This function draws the marginal posterior densities of the time elapsed between the minimum and the maximum of the dates included in a phase, and adds summary statistics (mean, CI)

Usage

PhaseDurationPlot(
  PhaseMin_chain,
  PhaseMax_chain,
  level = 0.95,
  title = "Duration of a group of dates",
  colors = TRUE,
  exportFile = NULL,
  exportFormat = "PNG",
  GridLength = 1024
)

Arguments

PhaseMin_chain

Numeric vector containing the output of the MCMC algorithm for the minimum of the events included in the phase.

PhaseMax_chain

Numeric vector containing the output of the MCMC algorithm for the maximum of the events 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 plot.

colors

If TRUE, use colors in the plot, otherwise produce a black and white plot.

exportFile

Name of the file to be saved. If NULL, then no plot is saved.

exportFormat

Format of the export file, either "PNG" or "SVG".

GridLength

Length of the grid used to estimate the density.

Details

Plot of the density of the time elapsed between the minimum and the maximum calendar years of the events included in a phase, along with mean and credible interval

Value

NULL, called for its side effects

Author(s)

Anne Philippe, Anne.Philippe@univ-nantes.fr and

Marie-Anne Vibet, Marie-Anne.Vibet@univ-nantes.fr

Examples

  data(Phases); attach(Phases)
  PhaseDurationPlot(Phase.1.alpha, Phase.1.beta, 0.95, "Duration of Phase 1")
  PhaseDurationPlot(Phase.2.alpha, Phase.2.beta, 0.95, "Duration of Phase 2", colors = FALSE)


[Package ArchaeoPhases version 1.8 Index]