David D. Hofmann

PostDoc, University of Zurich

Mapping the Flood Extent of the Okavango Delta in R

The Okavango Delta is one of the world’s most pristine ecosystems, hosting a large diversity of animal and plant species. It represents the planet’s largest inland delta and is characterized by significant seasonal fluctuations of its flood extent. In this blog post, I will introduce you to a simple, yet effective approach to remote sense the Delta’s flood extent using MODIS satellite imagery and the floodmapr R-package.

A Fair Share to De-Snare

During my last season of field work in Botswana, we encountered a pack of wild dogs where some individuals carried a wire snare around their neck. Luckily, with the aid of a wildlife veterinarian, we were able to remove the snares.

A Simulation-Based Introduction to Hidden-Markov Movement Models

Hidden Markov Movement Models (HMMMs) are increasingly popular in movement ecology to learn more about unobserved behavioral modes from telemetry data. In this blog post, we will simulate telemetry data with known movement parameters and estimate the parameters and associated behavioral modes using the moveHMM package.

Download and Visualize Satellite Images in R

When you visualize spatial data on a map, it is often useful to plot a satellite image in the background. Hence, I would like to show you can use R to access and download satellite imagery that is free of charge. Once downloaded, we will plot the imagery using either base plot, ggplot, or the magnificent tmap package.

Some Insights on Scaling/Standardizing

When we fit a statistical model, we usually scale our covariates to a mean of zero and standard deviation of one. But how does this actually influence the model and how does scaling change the way in which we need to interpret resulting model coefficients? Moreover, can we backtransform model coefficients from the scaled into the unscaled world? In this blog post, we’ll take a detailed look at scaling and examine why we scale, how to scale, and how to backtransform a model containing scaled covariates.

Quick Sensitivity Analyses in R

Have you ever tried to conduct a sensitivity analysis of your ecological models? Usually this involves running a model repeatedly using different parameters and investigating how predictions are influenced by varying different parameters. Doing this in R can be incredibly frustrating, especially when a large number of parameters are involved. Here, I will show you a relatively painless and simple workflow that will enable you to complete such analysis with clean and short code using tibbles from the tidyverse.

Using Microsoft's MegaDetector to Detect Animals on Cameratrap Images

Camera trap studies usually deal with thousands of camera trap images that have to be organized and sorted. In this blog-post, I’m going to illustrate how you can use Microsoft’s MegaDetector to automatically detect animals in camera trap images. This can be very useful to automate the identification and removal of images that do not contain any animals.

Elevation Data in R

Elevation data is a crucial element of many ecological studies. Unfortunately, collecting, cleaning, and stitching tiles from a digital elevation model is often tedious. Thus, I’ll show you how you can access elevation data straight from within R. In addition, you’ll learn how to derive terrain features and how to use the rayshader package, a package for beautiful 3d plots.