Blog Archives

Pre-CRAN waffle update – isotype pictograms

March 26, 2015
By
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 was using FontAwesome icons. When you use an icon vs a block, you are really making a basic version of isotype pictograms. They can add

Read more »

Fixing Colors & Proportions in Jerusalem Post Election Graphics

March 20, 2015
By
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 disproportionate arc sizes are definitely three substantial issues in that series of visualizations. We can rectify all of them with two new packages of mine:

Read more »

Making waffle charts in R (with the new ‘waffle’ package)

March 18, 2015
By
Making waffle charts in R (with the new ‘waffle’ package)

My disdain for pie charts is fairly well-known, but I do concede that there are times one needs to communicate parts of a whole graphically verses using just words or a table. When that need arises, I’m partial to “waffle charts” or “square pie charts”. @eagereyes did a great post a while ago on them

Read more »

Simple Lower US 48 Albers Maps & Local (no-API) City/State Geocoding in R

March 15, 2015
By
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 pretty old documentation or tutorials. I’ve also been seeing an uptick in folks needing to geocode US city/state to lat/lon. I thought I’d tackle both

Read more »

Streamgraph htmlwidget version 0.7 released (adds support for markers & annotations)

March 12, 2015
By

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 bumped up the priority on adding annotation functions to the streamgraph package (you really don’t want to have to hand-edit graphics if at all possible,

Read more »

New R Package – ipapi (IP/Domain Geolocation)

March 9, 2015
By

I noticed that the @rOpenSci folks had an interface to ip-api.com on their ToDo list so I whipped up a small R package to fill said gap. Their IP Geolocation API will take an IPv4, IPv6 or FQDN and kick back a ASN, lat/lon, address and more. The ipapi package exposes one function – geolocate

Read more »

Streamgraph package now supports continuous x axis scale

March 7, 2015
By

A post on StackOverflow asked about using a continuous variable for the x-axis (vs dates) in my streamgraph package. While I provided a workaround for the question, it helped me bump up the priority for adding support for continuous x axis scales. With the DBIR halfway behind me now, I kicked out a new rev

Read more »

Introducing the streamgraph htmlwidget R Package

February 15, 2015
By
2015-02-17 15_12_00-Clipboard

We were looking for a different type of visualization for a project at work this past week and my thoughts immediately gravitated towards streamgraphs. The TLDR on streamgraphs is they they are generalized versions of stacked area graphs with free baselines across the x axis. They are somewhat controversial but have a “draw you in”

Read more »

SweetheaRstats

February 12, 2015
By

I felt compelled to dust off my 2013 Valentine’s Day #rstats post and make it all Shiny and new again. I used the same math from that post, but made the polygon a bit sharper and used ggplot2 for the plotting. To kick it up a bit, I decided to pay homage to a local

Read more »

A Step to the Right in R Assignments

February 4, 2015
By

I received an out-of-band question on the use of %<>% in my CDC FluView post, and took the opportunity to address it in a broader, public fashion. Anyone using R knows that the two most common methods of assignment are the venerable (and sensible) left arrow <- and it’s lesser cousin =. <- has an

Read more »