
Create a heatmap of BirdNET detections by hour and date
Source:R/birdnet_heatmap.R
birdnet_heatmap.Rd
Generates a heatmap visualizing the daily activity pattern of a specified species detected in BirdNET output data. The heatmap shows detection counts by hour and date, optionally filtered by species, confidence threshold, date range, and hours of the day.
Usage
birdnet_heatmap(
data,
species = NULL,
threshold = NULL,
min_date = NULL,
max_date = NULL,
hour = NULL
)
Arguments
- data
A data frame containing BirdNET output. Relevant columns (e.g.,
common name
,confidence
,datetime
) are automatically detected by birdnet_detect_columns.- species
Character scalar or vector specifying the common name(s) of species to visualize. If
NULL
, no species filtering is applied.- threshold
Numeric scalar between 0 and 1, or a data frame with columns
scientific_name
andthreshold
, orNULL
. If numeric, filters detections below this confidence value. If a data frame, species-specific thresholds are applied. IfNULL
, no threshold filtering is done.- min_date
Character scalar specifying the earliest date to include (format
"YYYY-MM-DD"
). IfNULL
, no lower date limit is applied.- max_date
Character scalar specifying the latest date to include (format
"YYYY-MM-DD"
). IfNULL
, no upper date limit is applied.- hour
Integer vector of hours (0–23) specifying which hours of the day to include. If
NULL
, all hours are included.