Description Usage Arguments Value Examples
View source: R/AoristicFunctions.R
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.
1 |
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. |
The aoristic function.
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.