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

Understanding how to generate, analyze, and work with datasets in the humanities is often a difficult task without learning how to code or program. In humanities centered courses, we often privilege close reading or qualitative analysis over other methods of knowing, but by learning some new quantitative techniques we better prepare the students to tackle new forms of reading. This class will work with the data from the HathiTrust to develop ideas for thinking about how large groups and different discourse communities thought of queens of antiquity like Cleopatra and Dido.

This Data Expedition introduces students to network tools and approaches and invites students to consider the relationship(s) between social networks and social imaginaries. Using foundation-funding data that was collected from the The Foundation Directory Online, the Data Expedition enables students to visualize and explore the relationship between networks, social imaginaries, and funding for higher education. The Data Expedition is based on two sets of data. The first set list the grants received by Duke University in 2016 from five foundations: The Bill and Melinda Gates Foundation, Fidelity Charitable Gift Fund, Silicon Valley Community Foundation, The Community Foundation of Western North Carolina, and The Robert Wood Johnson Foundation. The second set lists the names of board members from Duke University and each of these five foundations along with the degree granting institution for their undergraduate education. For the sake of this exercise, the degree granting institutions data was fabricated from a randomized list of the top twenty-five undergraduate institutions.

This Data Expedition seeks to introduce students to statistical analysis in the field of international development. Students construct a index of wealth/poverty based on asset holdings using four datasets collected under the umbrella of the Living Standards Measurement Survey project at the World Bank. We selected countries to represent different continents with comparable and recent survey data: Bulgaria (2007), Tajikistan (2009), Tanzania (2010-2011), and Panama (2008).

First, we construct an index of wealth based on household assets in the different countries using Principle Components Analysis. Once a poverty index is constructed, students seek to understand what the main drivers of wealth/poverty are in different countries. We include variables for health, education, age, relationship to the household head, and sex. Students then use regression analysis to identify the main drivers of poverty in different countries.