overlap-package | R Documentation |

The times recorded on camera trap photos provide information on the period during the day that a species is most active. Species active at the same periods may interact as predator and prey, or as competitors. The functions in this package allow the overlap to be quantified, and provide means of estimating confidence intervals with bootstraps.

The functions in this package were originally optimised for a simulation study. Hence, speed is important and checking of input is minimal. It is the user's responsibility to make sure that input is valid.

In particular, note that all times are measured in **radians**. If your original data use 0-24 hours or 0-1 days, convert to radians: see the example in `kerinci`

. If you need fitted densities in other units, use the output from `densityPlot`

or `overlapPlot`

.

Mike Meredith, based on work by Martin Ridout.

Ridout & Linkie (2009) Estimating overlap of daily activity patterns from camera trap data. *Journal of Agricultural, Biological, and Environmental Statistics* 14:322-337

See `overlapTrue`

for the definition of the coefficient of overlapping, and `overlapEst`

for equations for the estimators. See `kerinci`

for an example of calculation of overlap and confidence interval from real data.

The **R** package activity has more functions for analysis of animal activity patterns.

```
# Get example data:
data(simulatedData)
# Use defaults:
overlapEst(tigerObs, pigObs)
# Dhat1 Dhat4 Dhat5
# 0.2908618 0.2692011 0.2275000
overlapEst(tigerObs, pigObs, type="Dhat4")
# Dhat4
# 0.2692011
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.