calc_dens_hist: Calculate scaled 1d density

Description Usage Arguments Value

View source: R/calculations.R

Description

Calculates 1d density of age data and scales it so that it can be plotted in the same plot of a histogram of the age data

Usage

1
2
3
4
5
6
7
calc_dens_hist(
  dat,
  binwidth = 50,
  bw = 30,
  type = "kde",
  age_range = c(0, 4560)
)

Arguments

dat

data.frame

binwidth

Histogram binwidth

bw

Density bandwidth

type

'kde': KDE; 'pdd': detrital zircon PDD

age_range

Age range to calculated density over

Value

Returns density


detzrcr documentation built on July 23, 2020, 9:06 a.m.