kernalOverlapBA_p: Calculate Bhattacharyya's affinity for two groups of animal...

kernalOverlapBA_pR Documentation

Calculate Bhattacharyya's affinity for two groups of animal tracks

Description

This function calculated Bhattacharyya's affinity for two groups of animal tracks. This could be Two sexes, high/low contaiminants loads, high low stress. You must have a tripID column that is unique to the trip, not just trip within bird. This can be created by paste(birdID, tripID,sep="_) if you do not already have this column.

Usage

kernalOverlapBA_p(
  tracks,
  tripid = "tripID",
  groupid = "Sex",
  lon = "Longitude",
  lat = "Latitude",
  colonyLon = -113.244555,
  colonyLat = 31.015513,
  its = 10,
  h = 1.4809524,
  ud.grid,
  Plot = F
)

Arguments

tracks

a data frame with tracking data

tripid

quoted column name housing unique trip ID. This can be created by paste(birdID, tripID,sep="_) if it does not already exist. trakR::MakeTrip can partition trips if not already done

groupid

quoted column name housing latitude

lon

quoted column name housing latitude

lat

quoted column name housing latitude

colonyLon

central longitude of the colony or center of the tracking data for reprojecting that lon/lat data into Lambert Azmuthel Equal Area in km

colonyLat

central latitude of the colony or center of the tracking data for reprojecting that lon/lat data into Lambert Azmuthel Equal Area in km

its

number of iterations

h

the smoothing parameter for kernelUD

ud.grid

a "SpatialPixelsDataFrame" generated with an extent and cell size with the function adehabitatMA::ascgen()

Plot

TRUE/FALSE if each randomization should be plotted?

Author(s)

Rachael Orben Rachael.Orben@oregonstate.edu

Abram B. Fleishman abram@conservationmetrics.com


abfleishman/trakR documentation built on Nov. 21, 2022, 7:59 a.m.