binsense: Bin sensitivity Plot

View source: R/plots.R

binsenseR Documentation

Bin sensitivity Plot

Description

Visually explores how choosing different values for h in the binPrep function affects the shape of the SPD.

Usage

binsense(
  x,
  y,
  h,
  timeRange,
  calendar = "BP",
  binning = "CRA",
  raw = F,
  verbose = T,
  legend = T,
  ...
)

Arguments

x

A CalDates class object containing calibrated radiocarbon dates.

y

A vector containing the locations ID (e.g. site ID) of each calibrated date to be used for the binning process.

h

A vector of numbers containing values for the h parameter to be used in the binPrep function.

timeRange

A vector of length 2 indicating the start and end date of the analysis in cal BP.

calendar

Either 'BP' or 'BCAD'. Indicate whether the calibrated date should be displayed in BP or BC/AD. Default is 'BP'.

binning

Either 'CRA' or 'calibrated'. Indicate whether the binning should be carried using the 14C age or using the median calibrated date. Default is 'CRA'.

raw

A logical variable indicating whether all SPDs should be returned or not. Default is FALSE.

verbose

A logical variable indicating whether extra information on progress should be reported. Default is TRUE.

legend

A logical variable indicating whether the legend should be displayed. Default is TRUE

...

Additional arguments to be passed to the spd function.

See Also

binPrep; spd

Examples

## Not run: 
data(euroevol)
#subset Danish dates
denmark=subset(euroevol,Country=="Denmark")
denmarkDates=calibrate(x=denmark$C14Age,errors=denmark$C14SD)
binsense(x=denmarkDates,y=denmark$SiteID,h=seq(0,200,20),timeRange=c(10000,4000),runm=200)

## End(Not run)

ahb108/rcarbon documentation built on Aug. 29, 2023, 9:21 a.m.