Dewey Dunnington
Dewey Dunnington
Home
Posts
Publications
Posts
Cribbage in R using R6 and vctrs
This week in random R tutorials…how to program a deck of cards as a vctrs class, using R6 to keep track of multiple player hands! It was inspired by the deck of cards tutorial in Hands On Programming with R, except this version is more about creating interfaces than about learning R programming.
Last updated on Feb 23, 2020
16 min read
Using GEOS in Rcpp
Before we start, I have to warn you that this is probably the nerdiest thing you’re going to do all week. In fact, the only thing that is nerdier than you reading this is me writing it.
Last updated on Feb 11, 2020
6 min read
Really basic Stan
Ever since I got a primer on Bayesian statistics from Aaron McNeil in my Analysis of Biological Data course at Dalhousie, I’ve been Bayesian-curious. As an avid R user, the way to do Bayesian statistics (as far as I can tell) is Stan, “a state-of-the-art platform for statistical modeling and high-performance statistical computation”.
Last updated on Dec 15, 2019
13 min read
Bathymetry & Lake Volume Estimation using R
I’ve been curious about bathymetry ever since I was a kid, when I could often be found pouring over charts of Lake Champlain during family sailing vacations. Little did I know that two decades later I would be making some of those maps myself!
Last updated on Nov 14, 2019
11 min read
Using a Hexagonal Grid for Canada's Election Map
Us Canadians are going to be looking at a lot of election maps in the next few hours, so I thought I’d try to make a few! First, we need to download the Riding geography from open Canada (there is more extensive information on Elections and Ridings at the Library of Parliament website).
Last updated on Oct 21, 2019
4 min read
Depth-Time visualization using R, the tidyverse, and ggplot2
It’s come up a few times in my career working with lakes that I’ve been asked to visualize the results of a sonde-based sampling program. These programs (and the data collected by them) are common, and it’s easy to see why: taking a boat to one of the deeper places in a lake and recording the temperature, oxygen saturation, and pH from a multi-parameter sonde is a relatively easy and engaging way to collect data.
Last updated on Sep 20, 2019
11 min read
Public Data Dive: Canada's Elections
Driving this week I heard an excellent piece on the CBC’s The Current entitled Set up to fail: Why women still don’t win elections as often as men in Canada. I love data science journalism, and the piece made me curious about the dataset, which the interviewee indicated was “downloaded from the parliament website”.
Last updated on Sep 6, 2019
9 min read
A Summer of RStudio and ggplot2
For those of you wondering why I haven’t been tweeting and/or blogging about mud and lakes all summer, it’s because I had the incredible opportunity to spend the summer as an RStudio intern working with Hadley Wickham on ggplot2!
Last updated on Jul 22, 2019
4 min read
Purposeful Issue Organizing
One of my ongoing tasks this summer was to organize the open issues in ggplot2. Every issue was opened by a user who thought ggplot2 should do something different than it currently was doing, and remained open because there was no consensus about how (or if) the current behavior should change.
Last updated on Jul 22, 2019
5 min read
Doing Bayesian Lead-210 interpretation
Paleolimnologists have been using the Constant Rate of Supply (CRS) and Constant Initial Concentration (CIC) model to interpret 210Pb dates for a very long time. Some variations like propagating error using a Monte Carlo simulation (Binford 1990 and Sanchez-Cabeza et al.
Last updated on May 1, 2019
9 min read
«
»
Cite
×