Blog Archives

Choosing R packages for mixed effects modelling based on the car you drive

April 13, 2017
By
Choosing R packages for mixed effects modelling based on the car you drive

Choosing R packages for mixed effects modelling based on the car you drive There are many roads you can take to fit a mixed effects model (sometimes termed hierarchical models) in R. There are numerous packages that each deploy different engines to fi...

Read more »

A fast method to add annotations to a plot

March 28, 2017
By
A fast method to add annotations to a plot

A fast method to add annotations to a plot Making professional looking plots in R can be fiddly. One task that I often spend ages doing is manually finding coordinates to add labels. Wouldn’t it be nice if you could just send the coordinates directl...

Read more »

Mean trophic levels of a genera from FishBase

March 22, 2017
By
Mean trophic levels of a genera from FishBase

Mean trophic levels of a genera from FishBase How would you selectively aggregate observations using R? For instance, say you have a table of trophic level estimates by fish species, but many species are missing values. For those species missing a val...

Read more »

Make your R simulation models 20 times faster

February 27, 2017
By
Make your R simulation models  20 times faster

Make your R simulation models 20 times faster R can be frustratingly slow if you use its loops. However, you can speed it up significantly (e.g. 20 times!) using the Rcpp package. That could turn a day long simulation into an hour long simulation. I ...

Read more »

Part 3: Spatial analysis of geotagged data

February 21, 2017
By
Part 3: Spatial analysis of geotagged data

Part 3: Spatial analysis of geotagged data See the other parts in this series of blog posts. In parts 1 and 2 we extracted spatial coordinates from our photos and then made an interactive web map that included data associate with those photos. Here I...

Read more »

Create an interactive web map with geotagged photos

November 22, 2016
By

Part 2: Create an interactive web map with geotagged photos See the other parts in this series of blog posts. In part 1 we looked at making a simple interactive map using locations from our geotagged photos. Those photos have data associated with the...

Read more »

Extracting exif data from photos using R

November 13, 2016
By

Part 1: Extracting exif data from photos using R See the other parts in this series of blog posts. My camera comes with an inbuilt GPS allowing you to geo-reference photos you take. Here is a simple example for how we can use this feature to create a...

Read more »

From geotagged photos to species distribution models

November 13, 2016
By

From geotagged photos to species distribution models My camera comes with an inbuilt GPS allowing you to geotag photos. I was on a family holiday on the beautiful Hornby Island (near Vancouver) and started wondering why the oysters growing on the rock...

Read more »

A ‘tidyverse’ approach to simulation models

October 27, 2016
By
A ‘tidyverse’ approach to simulation models

A ‘tidyverse’ approach to simulation models I am a big fan of Rstudio’s (mainly led by Hadley Wickham) series of R packages known as the ‘tidyverse’. The packages modernise much of R’s functionality to better deal with moderately large da...

Read more »

Create an inset plot

October 10, 2016
By
Create an inset plot

How to inset a plot on another plot in R The difficulty of plotting one plot over the top of another in R has always frustrated me. I often end up opening some photo editing software (like Gimp, which is free) and doing it manually. However, manual ed...

Read more »

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)