plot_dens: Plot 1d density

Description Usage Arguments Value

View source: R/plotting.R

Description

Creates density for U-Pb data.

Usage

1
2
3
4
5
6
7
8
9
plot_dens(
  dat,
  bw = 30,
  type = "kde",
  age_range = c(0, 4560),
  facet = FALSE,
  fixed_y = FALSE,
  step = 200
)

Arguments

dat

data.frame

bw

density bandwidth

type

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

age_range

range over which to calculate density

facet

logical, facet samples?

fixed_y

logical, fixed y-axis?

step

specify x-axis steps

Value

ggplot2 1d density plot with histogram


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