PhasePlot {ArchaeoPhases}R Documentation

Plot the characteristics of a group of events

Description

This function draws the marginal posterior densities of the minimum and the maximum of the events included in the phase and summary statistics including mean, credible interval, and time range. The result is given in calendar years (BC/AD).

Usage

PhasePlot(
  PhaseMin_chain,
  PhaseMax_chain,
  level = 0.95,
  title = "Characterisation 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

The title of the plot

colors

If TRUE, then use of colors in the plot, otherwise draw the plot in black and white.

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.

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)
   PhasePlot(Phase.1.alpha, Phase.1.beta, level = 0.95, title = "Densities of Phase 1")



[Package ArchaeoPhases version 1.5 Index]