ezTrack is a lightweight R package for exploring animal tracking data. It offers a gentle, beginner-friendly workflow to go from raw telemetry data to clean summaries, interactive maps, and home range estimates with minimal data wrangling.
# Install development version from GitHub
# install.packages("devtools")
::install_github("taylorbcraft/ezTrack") devtools
ez_track()
- Clean & standardize tracking data<- ez_track("my_tracking_file.csv") tracking_data
id
, timestamp
,
x
, and y
sf
object
projected to WGS84ez_summary()
-
Quick data summaryez_summary(tracking_data)
ez_summary(tracking_data, report = TRUE)
ez_fix_rate_plot()
- Plot location fix rateez_fix_rate_plot(tracking_data)
ez_home_range()
-
Estimate home ranges<- ez_home_range(tracking_data, method = "mcp", level = 95) ranges
sf
polygon(s)ez_map()
- Plot tracks on interactive Leaflet mapsez_map(tracking_data)
ez_latitude_plot()
- Plot latitude over timeez_latitude_plot(tracking_data)
library(ezTrack)
# Step 1: Import
data(godwit_tracks)
# Step 2: Standardize
<- ez_track(godwit_tracks)
trk
# Step 3: Summarize
ez_summary(trk)
# Step 4: Check fix rates
ez_fix_rate_plot(trk)
# Step 5: Compute home ranges
<- ez_home_range(trk)
hr
# Step 6: Map tracks and home ranges
ez_map(trk, home_ranges = hr)
# Step 7: Latitude plot
ez_latitude_plot(trk)
sf
, leaflet
, geosphere
,
adehabitatHR
: spatial operations, mapping, and home range
analysisreadxl
: Excel import supportknitr
, kableExtra
, htmltools
:
HTML reportingggplot2
, viridisLite
: plotting with color
palettesmagrittr
: for %>%
pipe in mapping
functionInstall missing packages using:
install.packages(c(
"sf", "leaflet", "geosphere", "adehabitatHR", "readxl",
"knitr", "kableExtra", "htmltools", "ggplot2", "viridisLite", "magrittr", "dplyr"
))
MIT License © 2025 Taylor Craft
Feel free to open an issue or submit a pull request. Suggestions welcome!