Publications by hrbrmstr

ggplot2で字幕 [Subtitles in ggplot2]

12.03.2016

Subtitles aren’t always necessary for plots, but I began to use them enough that I whipped up a function for ggplot2 that does a decent job adding a subtitle to a finished plot object. More than a few folks have tried their hand at this in the past and this is just my incremental contribution until there’s proper support in ggplot2 (someone�...

2274 sym R (3767 sym/3 pcs) 8 img 3 tbl

Spinning Cycles in Box #4 To Take the Pies out of Pi Day

14.03.2016

I caught this tweet today: INSTEAD OF WORRYING ABOUT HOW OTHER DATA SCIENTISTS USE PERHAPS @WSJGraphics COULD SPEND THEIR LEARNING DATAVIZ pic.twitter.com/xrP2eUhaaQ— Metrics Hulk (@MetricsHulk) March 14, 2016 The WSJ folks usually do a great job, but this was either rushed or not completely thought through. There’s no way you’re going t...

1712 sym R (2740 sym/1 pcs) 6 img 1 tbl

Supreme Annotations

16.03.2016

This is a follow up to a twitter-gist post & to the annotation party we’re having this week I had not intended this to be “Annotation Week” but there was a large, positive response to my annotation “hack” post. This reaction surprised me, then someone pointed me to this link and also noted that if having to do subtitles via hacks or Il...

4086 sym R (3673 sym/13 pcs) 4 img 13 tbl

Hy-phen-ate All The Things! (in R)

18.03.2016

hyphenatr–what may be my smallest package ever–has just hit CRAN. It, well, hyphenates words using libhyphen (a.k.a. libhnj). There are no external dependencies (i.e. no brew install, apt get, et. al. required) and it compiles on everything CRAN supports including Windows. I started coding this to see if it could be a “poor dude’s ‘syll...

3420 sym R (5325 sym/8 pcs) 8 tbl

Stacking the deck against treemaps

18.03.2016

So, I (unapologetically) did this to @Highcharts last week: @hrbrmstr Your loss of words inspired this post!! https://t.co/3KO0BP0k0u @hadleywickham @ma_salmon @tdmv @bearloga @rushworth_a @awhstin— Highcharts (@Highcharts) March 18, 2016 They did an awesome makeover (it’s interactive if you follow the link): And, I’m not kidding, it’s ...

4413 sym R (2532 sym/8 pcs) 4 img 8 tbl

Using ProPublica “statefaces” in ggplot2

19.03.2016

I’m a huge fan of ProPublica. They have a super-savvy tech team, great reporters, awesome graphics folks and excel at data-driven journalism. Plus, they give away virtually everything, including data, text, graphics & tools. I was reading @USATODAY’s piece on lead levels in drinking water across America and saw they had a mini-interactive pie...

4724 sym R (3538 sym/3 pcs) 2 img 3 tbl

Nuclear Animations in R

26.03.2016

@jsvine (Data Editor at BuzzFeed) cleaned up and posted a data sets of historical nuclear explosions earlier this week. I used it to show a few plotting examples in class, but it’s also a really fun data set to play around with: categorial countries; time series; lat/long pairs; and, of course, nuclear explosions! My previous machinations with ...

1462 sym R (7293 sym/1 pcs) 1 tbl

Easier Composite U.S. Choropleths with albersusa

29.03.2016

Folks who’ve been tracking this blog on R-bloggers probably remember this post where I showed how to create a composite U.S. map with an Albers projection (which is commonly referred to as AlbersUSA these days thanks to D3). I’m not sure why I didn’t think of this earlier, but you don’t need to do those geographical machinations every tim...

2529 sym R (2014 sym/1 pcs) 2 img 1 tbl

Introducing a Weekly R / Python / JS / etc Vis Challenge!

30.03.2016

Per a suggestion, I’m going to try to find a neat data set (prbly one from @jsvine) to feature each week and toss up some sample code (99% of the time prbly in R) and offer up a vis challenge. Just reply in the comments with a link to a gist/repo/rpub/blog/etc (or post directly, though inserting code requires some markup that you can ping me ab...

2759 sym R (1839 sym/1 pcs) 2 img 1 tbl

iptools 0.4.0 released into the wild (i.e. is hitting the CRAN mirrors today)

04.04.2016

The iptools package—a toolkit for manipulating, validating and testing IP addresses and ranges, along with datasets relating to IP addresses—is flying through the internets and hitting a CRAN mirror near you, soon. What’s fixed? Tim Smith fixed a bug in ip_in_range() that occurred when the netmask was /32 (thanks, Tim!). What’s new? The ...

1950 sym R (338 sym/2 pcs) 2 tbl