# Bacon.hist: Calculate age distributions of depths. In rbacon: Age-Depth Modelling using Bayesian Statistics

 Bacon.hist R Documentation

## Calculate age distributions of depths.

### Description

Calculate the distribution of age estimates of single or multiple depths.

### Usage

```Bacon.hist(
d,
set = get("info"),
age.lab = c(),
age.lim = c(),
hist.lab = "Frequency",
calc.range = TRUE,
hist.lim = c(),
draw = TRUE,
prob = set\$prob,
hist.col = grey(0.5),
hist.border = grey(0.2),
range.col = "blue",
med.col = "green",
mean.col = "red",
verbose = TRUE
)
```

### Arguments

 `d` The depth or depths for which a histogram and age ranges should be provided. If multiple depths are given, then just the age ranges, median and means (no graphs) are provided for each depth. `set` Detailed information of the current run, stored within this session's memory as variable info. `BCAD` The calendar scale of graphs and age output-files is in `cal BP` by default, but can be changed to BC/AD using `BCAD=TRUE`. `age.lab` The labels for the calendar axis (default `age.lab="cal BP"` or `"BC/AD"` if `BCAD=TRUE`). `age.lim` Minimum and maximum calendar age ranges, calculated automatically by default (`age.lim=c()`). `hist.lab` The y-axis is labelled `ylab="Frequency"` by default. `calc.range` Calculate ranges? Takes time so can be left out `hist.lim` Limits of the y-axis. `draw` Draw a plot or not. Defaults to `draw=TRUE`, however no plots are made if more than one depth `d` is provided. If `draw=FALSE`, then the age ranges, median and mean are given for each depth (as four columns). `prob` Age ranges are given as quantiles, e.g., 2.5% and 97.5% for the default of 95% confidence limits (`prob=0.95`)). `hist.col` Colour of the histogram. Default grey, `hist.col=grey(0.5)`. `hist.border` Colour of the histogram's outline. Default dark grey, `hist.border=grey(0.2)`. `range.col` Colour of confidence ranges. Defaults to `range.col="blue"`. `med.col` Colour of the median. Defaults to `med.col="green"`. `mean.col` Colour of the mean. Defaults to `mn.col="red"`. `verbose` Provide feedback on what is happening (default `verbose=TRUE`).

### Details

Age estimates of specific depths can also be plotted.

### Value

A plot with the histogram and the age ranges, median and mean, or just the age ranges, medians and means if more than one depth `d` is given.

### Author(s)

Maarten Blaauw, J. Andres Christen

### Examples

```## Not run:
Bacon(run=FALSE, coredir=tempfile())
agedepth(age.res=50, d.res=50, d.by=10)
Bacon.hist(20)
Bacon.hist(20:30)

## End(Not run)
```

rbacon documentation built on March 29, 2022, 5:05 p.m.