Data Expeditions: Estimating home ranges using track data in QGIS and RStudio

Project Summary

We introduced students to spatial analysis in QGIS and R using location data from two whale species tagged with satellite transmitters. Students were given satellite tracks from five Cuvier’s beaked whales (Ziphius cavirostris) and five short-finned pilot whales (Globicephala macrorhynchus) tagged off the North Carolina coast. Students then used RStudio to calculate two metrics of these species' spatial ranges: home range (where a species spends 95% of its time) and core range (where a species spends 50% of its time). Next, students used QGIS to visualize the data, producing maps that displayed the whales' tracks and their ranges.

Themes and Categories

Graduate Students: Amanda Lohmann, Ph.D., Student in Ecology, and Ann-Marie Jacoby, Ph.D., Student in Marine Science and Conservation

Faculty: Dr. Andrew Read

Course: "Marine Mammals" (BIOLOGY 376LA; 2018)

Data Description

The dataset consists of series of location points recorded from satellite tags on five short-finned pilot whales and five Cuvier's beaked whales. The whales were tagged off Cape Hatteras, NC between 2014 and 2016 as part of a joint effort between Duke University and the US Navy Marine Species Monitoring Program (Deep Divers and Satellite Tagging Records).

Class Summary

We gave a brief overview of the ARGOS satellite system and issues involved in cleaning up the error-prone data that is recorded by ARGOS satellite tags. We introduced the concept of geographic information system (GIS) software used for geospatial analysis. We discussed the need to project three-dimensional spatial data from the Earth's surface onto two-dimensional planes for analysis in GIS software and explained the importance of consistently using the same projection within a single project.

We then presented the whale track data and explained the concept of home ranges and core ranges. Next, we gave students the instructions sheet, which walked them through calculating home range and core range for both species of whale. The assignment asked students to: use the open-source QGIS program to load satellite-recorded whale locations; project the 3D latitude-longitude coordinates onto a 2D plane; export the projected coordinates into a file that could be loaded with the R programming language; use R to calculate the home range and core range of each species using a method known as kernel density estimation (KDE); transfer the resulting polygons back into QGIS; and create clear, easy-to-read maps in QGIS displaying the whales' tracks and their ranges.


  1. Create two maps in QGIS one for short-finned pilot whales (Globicephala macrorhynchus) and one for Cuvier’s beaked whales (Ziphius cavirostris) displaying the track points, core range, and home range for all animals using kernel density estimations in R.
  2. Descriptively compare pilot whale and Cuvier’s beaked whale home ranges by completing the following:
    1. Describe the two species' home ranges and core ranges.
    2. Compare the two species' home ranges (similarities and differences), and
    3. Give possible reasons as of to why there are similarities and differences between the two species' home ranges. Think about their physiology, diet, behavior, etc., as well as the continental shelf and Gulf Stream.

We expect a paragraph but no more than one page. Please cite the sources you use.

Course Materials

  1. Thorne LH, Foley HJ, Baird RW, Webster DL, Swaim ZT, Read AJ (2017) Movement and foraging behavior of short-finned pilot whales in the Mid-Atlantic Bight: importance of bathymetric features and implications for management. Mar Ecol Prog Ser 584:245-257. 
  2. Stanistreet, JE, Nowacek DP, Baumann-Pickering S, Bell JT, Cholewiak DM, Hildebrand JA, Hodge LEW, Moors-Murphy HB, Van Parijs SM, Read AJ.  2017. Using passive acoustic monitoring to document the distribution of beaked whale species in the western North Atlantic Ocean. Canadian Journal of Fisheries and Aquatic Sciences.


Pilot Whale Tracks

Pilot whale home range and core range

Beaked whale home range and core range

Related Projects

This data expeditions module used three full course sessions to introduce undergraduate hydrology students with minimal programming background to:

  • Public water data (water quantity and chemistry)

  • Spatial analysis of water data

  • 2 core, spatial datasets produced by the USGS that enable spatial analysis

  • The programming language R

  • R based tools for water data

  • Spatial analysis and maps in R

Exposure to local pathogens is a significant selective pressure on the human genome: the strongest selective forces identified in modern human populations are for mutations that confer increased resistance to malaria infection. Understanding how human genetic variation impacts susceptibility to pathogens can reveal important aspects of disease biology and reveal novel treatment targets. By using genome-wide association of infection-related cellular traits, we can connect human genetic variation to disease susceptibility in a controlled laboratory environment. Identification of the variants, genes, and cellular pathways involved in infectious disease pathogenesis can inform host-directed therapeutics, clinically effective risk stratification, and epidemiological prediction. This data expedition explores the effect of host genetic variation on chemokine response to Chlamydia infection.

How does human habitation relate to patterns in the natural environment? How do species respond to the presence of, and changes in, habitation? In this Data Expedition, students make use of public datasets from the Census and the Global Biodiversity Information Facility to examine relationships between individual species and human settlements. Students develop introductory skills in spatial data manipulation and visualization in R, exposure to powerful datasets and tools, and critical thinking skills in assessing dataset quality and bias.