Quantitative analysis of gorilla movement and R-Stat (part 2)
Posted by smathermather on November 23, 2016
In my previous post, I did a bit of setup on the who and what for analyzing gorilla data. Now let’s move into R-Stat a little bit, specifically installation and configuration.
We’re going to leverage a few packages in our work. The first is the “sp” package. This gives us “CLasses and Methods for Spatial Data” in R:
We’ll also “rgdal”. This package gives us “Bindings for the Geospatial Data Abstraction Library”. For our use case here, this allows us to read shapefiles, geotiffs, and other spatial data.
We’ll use “rmarkdown” also. This allows us to build a markdown file (think HTML but much simpler) that includes our code in code blocks, and can be compiled to a document whether a web page, pdf, etc.. This encourages us to write code and document it in one place, and ultimately will allow us to build some really great reporting functionality while getting our analysis work done.
Finally, we’ll need the adehabitatLT package for aiding in our analysis of animal movement and habitat use.
We can, of course install all this in one swell foop as follows:
install.packages("sp") install.packages("rgdal") install.packages("rmarkdown") install.packages("adehabitatLT")
Now we have all the building blocks we need to start analyzing our data. Stick around for part 3.