plotDensities: Density plot of elapsed times between consecutive acoustic...

View source: R/plot.R

plotDensitiesR Documentation

Density plot of elapsed times between consecutive acoustic detections

Description

Generates a density plot for inspecting the distribution of elapsed times (in hours) between all consecutive acustic detections. By default the plot is created including all monitored groups and transmitters. Alternatively, can be set to be performed at group level using the type argument.

Usage

plotDensities(input, group)

Arguments

input

RSP dataset as returned by RSP.

group

Character vector defining the group to which calculate density distributions. By default, density is calculated for all animals and groups tracked.

Value

Density plots of hours elapsed between consecutive acoustic detections.

Examples


# Import river shapefile
water <- actel::shapeToRaster(shape = paste0(system.file(package = "RSP"), "/River_latlon.shp"), 
size = 0.0001, buffer = 0.05) 

# Create a transition layer with 8 directions
tl <- actel::transitionLayer(x = water, directions = 8)

# Import example output from actel::explore() 
data(input.example) 

# Run RSP analysis
rsp.data <- runRSP(input = input.example, t.layer = tl, coord.x = "Longitude", coord.y = "Latitude")

# Plot distribution of acoustic detections
plotDensities(rsp.data, group = "G1")



YuriNiella/RSP documentation built on Feb. 2, 2024, 5:03 a.m.