Publications by hrbrmstr

Roll Your Own Stats and Geoms in ggplot2 (Part 1: Splines!)

08.09.2015

A huge change is coming to ggplot2 and you can get a preview of it over at Hadley’s github repo. I’ve been keenly interested in this as I will be fixing, finishing & porting coord_proj to it once it’s done. Hadley & Winston have re-built the ggplot2 with an entirely new object-oriented system called ggproto. With ggproto it’s now possible...

4588 sym R (2109 sym/2 pcs) 2 img 2 tbl

A Better Way To Read Nest Data Into R

10.09.2015

I glimpsed a post in the RSS feeds today on how to connect Nest data with a Shiny dashboard and was compelled to post a less brute-force way to get data from the Nest API. The authors of the Shiny+Nest post used system calls to curl and regular expression character vector operations to slice, dice & work with the Nest API/data. However, we have p...

3828 sym R (958 sym/7 pcs) 7 tbl

A Package Full o’ Pirates & Makin’ Interactive Pirate Maps in arrrrrRstats

19.09.2015

Avast, me hearties! It’s time four t’ annual International Talk Like a Pirate Day #rstats post! (OK, I won’t make you suffer continuous pirate-speak for the entire post) I tried to be a bit more practical this year and have two treasuRe chests for you to (hopefully) enjoy. A Package Full o’ Pirates I’ve covered the Anti-shipping Activit...

3520 sym R (3669 sym/7 pcs) 6 img 7 tbl

For Some Definition of “Directly” and/or “Contort”

30.09.2015

Junk Charts did a post on Don’t pick your tool before having your design and made a claim that this: “cannot be produced directly from a tool (without contorting your body in various painful locations)”. I beg to differ. With R & ggplot2, I get to both pick my tool and design at the same time since I have a very flexible and multi-purpose ...

1086 sym R (1460 sym/1 pcs) 4 img 1 tbl

Replicating NatGeo’s “Proper” Earthquake Map in R

04.10.2015

I saw this post over at NatGeo over the weekend and felt compelled to replicate this: with ggplot2. Three shapefiles later and we have it close enough to toss into a post (and I really don’t believe the continent names are necessary). library(rgdal) library(ggplot2) library(ggthemes) # grab these from http://rud.is/dl/quakefile.tgz world <- ...

704 sym R (1710 sym/1 pcs) 4 img 1 tbl

Installing R on OS X

20.10.2015

I was in a conversation with an academic colleague (wicked smart dude) and the subject of installing R came up (NOTE: this will happen to you, too, if you ever have the misfortune to have a face-to-face convo with me ;-). They noted that getting up and running with R was not as seamless as one would like it to be and, to be honest, I have to agre...

5730 sym R (112 sym/2 pcs) 10 img 2 tbl

Installing R on OS X – “100% Homebrew Edition”

22.10.2015

In a previous post I provided “mouse-heavy” instructions for getting R running on your Mac. A few of the comments suggested that an “all Homebrew” solution may be preferable for some folks. Now, there are issues with this since getting “support” for what may be R issues will be very difficult on the official mailing lists as you’ll ...

5190 sym R (1856 sym/5 pcs) 5 tbl

Less Drama, More Encoding

24.10.2015

Junk Charts adeptly noted and fixed this excessively stylized chart from the WSJ this week: Their take on it does reduct the ZOMGOSH WE ARE DOOMED! look and feel of the WSJ chart: But, we can further reduce the drama by using a more neutral color encoding and encode both the # of outbreaks and total size of the impacted flock populations per we...

993 sym R (4406 sym/2 pcs) 8 img 2 tbl

An Ephemeral Update to daylight()

02.11.2015

This occurrence of the bi-annual corruption of the space-time continuum (i.e. changing to/from standard/daylight time) in the U.S. caused me to make a slight change to the code from an older post. The daylight() function now auto-discovers the date and location information (via telize) from the caller, which means all you have to do to get a plot...

1342 sym R (95 sym/1 pcs) 2 img

Visualizing Survey Data : Comparison Between Observations

08.11.2015

Cybersecurity is a domain that really likes survey, or at the very least it has many folks within it that like to conduct and report on surveys. One recent survey on threat intelligence is in it’s second year, so it sets about comparing answers across years. Rather than go ingo the many technical/statistical issues with this survey, I’d like ...

3221 sym R (7087 sym/7 pcs) 14 img 7 tbl