Blog Archives

This is one of my favorite ggplot2 plots I’ve ever made, but it…

July 21, 2015
By
This is one of my favorite ggplot2 plots I’ve ever made, but it…

This is one of my favorite ggplot2 plots I’ve ever made, but it makes me sad. Can you deduce what this plot conveys? Explain the sporadically dashed colored horizontal bands. Explain the red vertical bars. Explain the black vertical bars. If you answer all three correctly, and you can explain the rest of the plot, I’ll give you the code.

Read more »

No THIS Is How You Dplyr and Data.Table!

May 28, 2015
By

So, I got some great solutions to my dplyr mutation problem to share. Just wait until you see these things! Remember, I was having trouble reconciling two date columns into a minimum value in the presence of NA values. Here’s the fake data agai...

Read more »

Is This How You Dplyr?

May 27, 2015
By

Yesterday I ran into a fairly complex issue regarding dplyr mutation and I wanted to get your take on my solution. I have two data frames with the same identifiers and two different date columns which I need to merge into one date column, with the val...

Read more »

Old is New: XML and rvest

May 22, 2015
By

Huh… I didn’t realize just how similar rvest was to XML until I did a bit of digging. After my wonderful experience using dplyr and tidyr recently, I decided to revisit some of my old RUNNING code and see if it could use an upgrade by swapping out the XML dependency with rvest. Ultra Signup:...

Read more »

TidyR Challenge: Data.Table Solution

May 19, 2015
By

Arun Srinivasan is the man! Once he saw that his data.table solution to the TidyR Challenge had an issue, he fixed it! His solution is below along with a quick equivalence test to my original solution, and check out this stackOverflow question for a...

Read more »

TidyR Challenge: Update

May 8, 2015
By

In my last post I described a data set that was a bit cumbersome to parse and I wanted to tidy it up before I could begin visually exploring. You know, the fun part. I wasn’t 100% happy with my solution so I candidly asked the internet to Help Me Do My Job. One solution involved a development...

Read more »

TidyR Challenge: Help Me Do My Job

May 6, 2015
By

Last week I was handed a drug prescription data set and asked to create some interesting graphics. But before I can even get to the fun part, I was faced with actually transforming the set into something that ggplot2 could read. Obviously I can’t share the data, but Tyler Rinker has created a fantastic package called wakefield that...

Read more »

Oracle R, Hash Table Results, And VIM To The Rescue

April 27, 2015
By
Oracle R, Hash Table Results, And VIM To The Rescue

Downloaded and installed Solaris 11.2 on my laptop, and WOW! That was a throwback to the late 90’s! Old version of GNOME, no truetype fonts so the whole visual experience was very pixelly. Firefox was installed but every website I visited yelled,...

Read more »

Course Profiles in ggplot2

April 23, 2015
By
Course Profiles in ggplot2

Over on my other blog, Droppin’ The Hammer… where I journal my ultra running experience, I featured a novel ggplot2 plot for highlight elevation gain and loss on running race course profiles. If you’ve never run a particular race you...

Read more »

Blowing Away the Competition

April 22, 2015
By
Blowing Away the Competition

In February I embarked on a mission to speed up R, and I’m very pleased with the results so far. I redesigned the internal string cache, symbol table, and environments by using a somewhat obscure data structure called an Array Hash. It’s ba...

Read more »