A demonstration of sea mammal tracking visualization in R, by Vincenzo Coia, with data from Tiphaine Jeanniard Du Dot.
This repository contains everything you need to reproduce the graphics and shiny app that I demonstrated in the Sea Mammal Roundtable at the University of British Columbia, on May 6, 2015.
There are three goals of this demonstration:
- conceptual -- how can one go about visualizing many variables?
- exposure to handy R packages for visualization
- exploratory analysis of a Northern Fur Seal's trip to sea
There are three demonstrations in this repository:
- Using
ggplot2
andggmap
to produce an overview map of the seal's path.
- Go through 1-GPS_data.R
- Using
rgl
to visualize the magnetometer/accelerometer data in 3D, andggplot2
to project the data in 2D.
- Go through 2-mag_data.R
- Using
shiny
to visualize all the data at once, interactively.
- See the final app here.
- See the source code in the ui.R and server.R files.
- Run with the
runApp
function inshiny
, or RStudio's 'Run App' button.
- Run with the
You can find out more about concepts and resources in my slides, entitled presentation.pdf.
You can find the data in the 'Data' directory. To work with the exercises, you'll need to download them and make sure the load
commands in the R code point to the directory you put the data in.
The data have been graciously made available by Tiphaine Jeanniard Du Dot, a PhD student at the University of British Columbia.
The data were recorded for a Norther Fur Seal on Saint Paul Island, Alaska, over her trip to sea between August 26, 2011 and August 31, 2011. The seal was equipped with tags, which produced data on:
- GPS locations when the seal was at the water surface;
- Accelerometer data
- Magnetometer data
- Speed of the seal
- Light level surrounding the seal
- Depth of the seal