MultiPhasePlot {ArchaeoPhases}R Documentation

Several phase density plots

Description

Plot of the marginal posterior densities of several groups

Usage

MultiPhasePlot(
  data,
  position_minimum,
  position_maximum = position_minimum + 1,
  level = 0.95,
  title = "Characterisation of several groups",
  colors = NULL,
  exportFile = NULL,
  exportFormat = "PNG"
)

Arguments

data

Data frame containing the output of the MCMC algorithm.

position_minimum

Numeric vector containing the column number corresponding to the minimum of the events included in each group.

position_maximum

Numeric vector containing the column number corresponding to the end of the groups set in the same order as in position_minimum.

level

Probability corresponding to the level of confidence.

title

Title of the plot.

colors

Numeric vector of colors for each group of dates.

exportFile

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

exportFormat

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

Details

Draws a plot with the marginal posterior densities of the minimum and the maximum of the dates included in each group. No temporal order between phases is required. The result is given in calendar years (BC/AD).

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 extracted from ChronoModel software
  data(Phases)
  # List of the name of the groups
  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", colors = c(3, 4))


[Package ArchaeoPhases version 1.8 Index]