rud.is
Latest posts from rud.is
A Path Towards Easier Map Projection Machinations with ggplot2
The $DAYJOB doesn’t afford much opportunity to work with cartographic datasets, but I really like maps and tinker with shapefiles and geo-data when I can, plus answer a ton of…
Using the new ‘viridis’ colormap in R (thanks to Simon Garnier)
Nathaniel Smith and Stéfan van der Walt presented a new colormap (for Python) at SciPy 2015 called viridis. From the authors: The default colourmap in Matplotlib is the colourful rainbow-map…
R Package to access the Open Movie Database (OMDB) API
It’s not on CRAN yet, but there’s a devtools-installable R package for getting data from the OMDB API. It covers all of the public API endpoints: find_by_id: Retrieve OMDB info…
Faceted “World Population by Income” Choropleths in ggplot
Poynter did a nice interactive piece on world population by income (i.e. “How Many Live on How Much, and Where”). I’m always on the lookout for optimized shapefiles and clean…
Two pending features to metricsgraphics
I’ve been slowly prodding the metricsgraphics package towards a 1.0.0 release, but there are some rough edges that still need sorting out. One of them is the ability to handle…
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…
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…
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.…
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…
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…
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…
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 (alternate link) that ends up being…
quotebox – An NPR-like Embedded Twitter Quote Generator
I’m an avid NPR listener also follow a number of their programs and people on Twitter. I really dig their [quotable](https://github.com/nprapps/quotable) tweets. Here’s a sample of a recent one: Minn.…
More Airline Crashes via the Hadleyverse
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](https://github.com/philjette/CrashData) by @philjette. It…
A look at airline crashes in R with googlesheets, dplyr & ggplot2
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…
Pre-CRAN waffle update – isotype pictograms
It seems Ruben C. Arslan had the waffle idea about the same time I did. Apart from some extra spiffy XKCD-like styling, one other thing his waffling routines allowed for…
Fixing Colors & Proportions in Jerusalem Post Election Graphics
Vis expert Naomi Robbins did an excellent critique of the graphics that went along with an article on Israeli election in the Jerusalem Post. Non-uniform and color-blind-unfriendly categorical colors and…
Making waffle charts in R (with the new ‘waffle’ package)
NOTE: The waffle package (sans JavaScript-y goodness) is up on CRAN so you can do an install.packages("waffle") and library(waffle) vs the devtools dance. My disdain for pie charts is fairly…
Simple Lower US 48 Albers Maps & Local (no-API) City/State Geocoding in R
I’ve been seeing an uptick in static US “lower 48” maps with “meh” projections this year, possibly caused by a flood of new folks resolving to learn R but using…
Streamgraph htmlwidget version 0.7 released (adds support for markers & annotations)
In preparation for using some of our streamgraphs for production (PDF/print) graphics, I ended up having to hand-edit labels in on one of the graphics in an Adobe product. This…

