Here you can find the slides used in the lectures. They are provided in three formats: PDF (for printing), HTML (for viewing online, with animations) and the source R presentation files (so you can see how all the graphics were produced).
|Introduction to distance sampling||HTML||Rpres|
|Advanced distance sampling||HTML||Rpres|
|What is a density surface model?||HTML||Rpres|
|Generalized Additive Models||HTML||Rpres|
|Adding covariates to density surface models||(none)||(none)|
|Multivariate smoothing, model selection||HTML||Rpres|
|Extrapolating (Laura Mannocci)||(none)||(none)|
Building the slides yourself
You’ll need some extra R packages to get the code in the presentations to run. Issuing the following command should ensure that they work.
install.packages(c("Distance", "RColorBrewer", "animation", "dsm", "ggplot2", "gridExtra", "knitr", "magrittr", "mgcv", "numDeriv", "plyr", "raster", "reshape2", "rgdal", "statmod", "tweedie", "viridis", "htmltools", "caTools", "bitops", "rmarkdown", "tweedie"))
We recommend that you download the latest versions of the distance sampling related R packages by installing them from GitHub. You can do this by first installing the
devtools package, then using the
install_github function as follows:
install.packages("devtools") library(devtools) install_github("DistanceDevelopment/mrds") install_github("DistanceDevelopment/Distance") install_github("DistanceDevelopment/dsm")
Data used in the slides is in the
spermwhale-analysis directory of this github repository. It may well be easier to download all files in the repository (use the “Download ZIP” button in the right hand side) if you wish to rebuild the slides from scratch (using RStudio).