select: Spatial selection methods for telemetry objects.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Methods to segment or subset telemety objects based on polygon lasso, rectangular marquee, and time slider selectors.

Usage

1
2
3
4
5
lasso(object,...)

marquee(object,...)

cleave(object,fraction=0.5,name="CLEFT",...)

Arguments

object

telemetry object or list of such objects.

fraction

Initial split, as fraction of total time period.

name

Name of list to store cleft telemetry objects to.

...

Additional arguments passed to plot.

Details

lasso and marquee allow the user to subset telemetry data into two groups (interior and exterior), based on a hand-drawn polygon lasso or rectangular marquee. cleave allows the user to split the data into two halves at a particular time selected via slider.

Value

lasso and marquee return a named list telemetry objects, twice the length of the input object, where the first half are the interior subsets and the second half are the exterior subsets. cleave stores a similar list of telemetry objects to name on button press.

Author(s)

C. H. Fleming.

See Also

plot.telemetry

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# This example is interactive
if(interactive())
{
  # Load package and data
  library(ctmm)
  data(wolf)

  # Extract wolf Luna
  Luna <- wolf$Luna

  # Select resident data
  Luna.sub <- lasso(Luna)

  # You can now work with the resident and dispersive data separately
  names(Luna.sub)
}

ctmm documentation built on July 28, 2021, 5:10 p.m.