binsense: Bin sensitivity Plot

Description Usage Arguments See Also Examples

View source: R/plots.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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

1
2
3
4
5
6
7
8
## 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)

rcarbon documentation built on Jan. 13, 2021, 7:09 p.m.