Blog Archives

Get by with a little (R) help from your friends (at GitHub)

June 29, 2015
By
Get by with a little (R) help from your friends (at GitHub)

@JennyBryan posted her slides from the 2015 R Summit and they are a must-read for instructors and even general stats/R-folk. She’s one of the foremost experts in R+GitHub and her personal and class workflows provide solid patterns worth emulation. One thing she has mentioned a few times—and included in her R Summit talk—is the idea

Read more »

DO Something Nifffty with R

June 19, 2015
By
DO Something Nifffty with R

@briandconnelly (of pushoverr fame) made a super-cool post about connecting R to @IFTTT via IFTTT’s “Maker” channel. The IFTTT Maker interface to receive events is fairly straightforward and Brian’s code worked flawlessly, so it was easy to tweak a bit and wrap into a package. To get started, you can clone an example public IFTTT

Read more »

metricsgraphics 0.8.5 is now on CRAN!

June 15, 2015
By

I’m super-pleased to announce that the Benevolent CRAN Overlords accepted the metricsgraphics package into CRAN over the weekend. Now, you no longer need to rely on github/devtools to use MetricsGraphics.js charts from your R scripts. If you’re not familiar with htmlwidgets, take a look at the official site for them. To make it easier to

Read more »

Animated US Hexbin Map of the Avian Flu Outbreak

June 7, 2015
By
Animated US Hexbin Map of the Avian Flu Outbreak

The recent announcement of the start of egg rationing in the U.S. made me curious enough about the avian flu outbreak to try to dig into the numbers a bit. I finally stumbled upon a USDA site that had an embedded HTML table of flock outbreak statistics by state, county and date (also flock type

Read more »

A quick, incomplete comparison of ggplot2 & rbokeh plotting idioms

May 26, 2015
By
A quick, incomplete comparison of ggplot2 & rbokeh plotting idioms

I set aside a small bit of time to give rbokeh a try and figured I’d share a small bit of code that shows how to make the “same” chart in both ggplot2 and rbokeh. What is Bokeh/rbokeh? rbokeh is an htmlwidget wrapper for the Bokeh visualization library that has become quite popular in Python

Read more »

Scraping jQuery DataTable Programmatic JSON with R

May 18, 2015
By
Scraping jQuery DataTable Programmatic JSON with R

School of Data had a recent post how to copy “every item” from a multi-page list. While their post did provide a neat hack, their “words of warning” are definitely missing some items and the overall methodology can be improved upon with some basic R scripting. First, the technique they outlined relies heavily on how

Read more »

U.S. Drought Monitoring With Hexbin State Maps in R

May 15, 2015
By
U.S. Drought Monitoring With Hexbin State Maps in R

On the news, today, of the early stages of drought hitting the U.S. northeast states I decided to springboard off of yesterday’s post and show a more practical use of hexbin state maps than the built-in (and still purpose unknown to me) “bees” data. The U.S. Drought Monitor site supplies more than just a pretty

Read more »

GeoJSON Hexagonal “Statebins” in R

May 14, 2015
By
GeoJSON Hexagonal “Statebins” in R

There’s been lots of buzz about “statebin” maps of late. A recent tweet by @andrewxhill referencing work by @dannydb pointed to a nice shapefile that ends up being a really great way to handle statebin maps (and I feel like a fool for not considering it for a more generic solution earlier). Here is the

Read more »

More Airline Crashes via the Hadleyverse

March 31, 2015
By

I saw a fly-by #rstats mention of more airplane accident data on — of all places — LinkedIn (email) today which took me to a GitHub repo by @philjette. It seems there’s a web site (run by what seems to be a single human) that tracks plane crashes. Here’s a tweet from @philjette announcing it:

Read more »

rud.is » R 2015-03-30 13:32:08

March 30, 2015
By
rud.is » R 2015-03-30 13:32:08

Over on The DO Loop, @RickWicklin does a nice job visualizing the causes of airline crashes in SAS using a mosaic plot. More often than not, I find mosaic plots can be a bit difficult to grok, but Rick’s use was spot on and I believe it shows the data pretty well, but I also

Read more »