overlapPlotWindow: Plot overlap or excess within specified window.

Description Usage Arguments Details Value Examples

Description

Densities are plotted for the entire day, but the overlap or excess are only shown within the requested window.

Usage

1
2
3
4
5
overlapPlotWindow(A, B, t0 = 0, t1 = 24, type = c("both", "overlap",
  "excess"), xscale = 24, xcenter = c("noon", "midnight"), extend = NULL,
  linetype = c("solid", "solid"), linecol = c("black", "blue"),
  linewidth = c(1, 1), overlapcol = "lightblue", excesscol = "lightgrey",
  mark.window = T, adjust = 0.8, kmax = 3, n.grid = 1000, ...)

Arguments

A

Numeric vectors of sighting times in [0,2pi]

B

Numeric vectors of sighting times in [0,2pi]

t0, t1

Window times are not scaled internally and should chosen by the user to reflect xscale. They are shifter internally to reflect xcenter.

type

Character string with overlap to plot the overlap, excess to plot the area between the densities or both (default) for both. Partial matching okay.

xscale

scale for x-axis: default is 24 for time in hours, xscale=NA produces a scale in radians

xcenter

where to center the x-axis: 'noon' (default) or 'midnight'

extend

If not NULL, the plot is extended by 3 hours on both sides to emphasize the circularity and extend specifies the color.

linecol

The colors to use for plotting the densities curves.

overlapcol, excesscol

The color(s) to use for plotting the overlap or excess, respectively.

mark.window

Logical indicating whether to plot vertical lines at the window boundaries.

adjust

See overlapEst.

kmax

See overlapEst.

Details

This function is intended to resemble overlapPlot from the overlap package with credit to its author, Mike Meredith. However, not all functionality from that function has been put in place here yet – rug plotting reamins to do. Currently does not handle wrapping of window around edges of plot.

Value

None. Plots to the current device.

Examples

1
2
data(simulatedData)
overlapPlotWindow(tigerObs,pigObs,t0=18,t1=22)

jbhender/camtrap documentation built on May 18, 2019, 5:59 p.m.