getCircAoristicFunction: Aoristic Fraction function

Description Usage Arguments Value Examples

View source: R/AoristicFunctions.R

Description

Create a function for circular interval censored analysis. The created function takes a vector 'x' and returns the height of the aoristic fraction given that function.

Usage

1

Arguments

df

A 'data.frame' or matrix of which the first column represents the lower bound and the second column represents the upper bound of the observed intervals.

Value

The aoristic function.

Examples

1
2
3
4
5
6
7
8
df <- generateAoristicData(n = 5)
myfun <- getCircAoristicFunction(df)
ggplot(data.frame(x = c(0, 2*pi)), aes(x)) +
  geom_hline(yintercept = 0, color = "gray") +
  stat_function(fun = myfun, n = 1000) +
  coord_polar() +
  ylim(-1, NA) +
  theme_void()

keesmulder/aoristicinference documentation built on May 4, 2019, 3:17 p.m.