TempoActivityPlot {ArchaeoPhases}R Documentation

Plot the derivative of the tempo plot Bayesian estimate

Description

A statistical graphic designed for the archaeological study of rhythms of the long term that embodies a theory of archaeological evidence for the occurrence of events

Usage

TempoActivityPlot(
  data,
  position,
  plot.result = NULL,
  level = 0.95,
  title = "Activity plot",
  subtitle = NULL,
  caption = "ArcheoPhases",
  x.label = "Calendar year",
  y.label = "Activity",
  line.types = c("solid"),
  width = 7,
  height = 7,
  units = "in",
  x.min = NULL,
  x.max = NULL,
  file = NULL,
  x.scale = "calendar",
  elapsed.origin.position = NULL,
  newWindow = TRUE,
  print.data.result = FALSE
)

Arguments

data

Data frame containing the output of the MCMC algorithm.

position

Numeric vector containing the position of the column corresponding to the MCMC chains of interest.

plot.result

List containing the data to plot, typically the result of a previous run of TempoActivityPlot().

level

Probability corresponding to the level of confidence.

title

Title of the plot.

subtitle

Subtitle of the plot.

caption

Caption of the plot.

x.label

Label of the x-axis.

y.label

Label of the y-axis.

line.types

Type of the lines drawn on the plot.

width

Width of the plot in units.

height

Height of the plot in units.

units

Units used to specify width and height, one of "in" (default),"cm", or "mm".

x.min

Minimum value for x-axis.

x.max

Maximum value for x-axis.

file

Name of the file to be saved if specified. If Null, then no file is saved.

x.scale

One of "calendar", "bp", or "elapsed".

elapsed.origin.position

If x.scale is "elapsed", the position of the column corresponding to the event from which elapsed time is calculated.

newWindow

Whether or not the plot is drawn within a new window .

print.data.result

If TRUE, the list containing the data to plot is returned.

Value

NULL, called for its side effects. It may also return a list containing the data to plot (if print.data.result = TRUE). The result is given in calendar years (BC/AD).

Author(s)

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

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

References

Dye, T.S. (2016) Long-term rhythms in the development of Hawaiian social stratification. Journal of Archaeological Science, 71, 1–9.

Examples

  data(Events);
  TempoActivityPlot(Events[1:1000, ], c(2:5), print.data.result = FALSE)
  TempoActivityPlot(Events[1:1000, ], c(2:5), print.data.result = FALSE)


[Package ArchaeoPhases version 1.5 Index]