Publications by hrbrmstr
New IBM Plex Sans Support in hrbrthemes + Automating Axis Text Justification
IBM has a new set of corporate typefaces — dubbed “Plex” — and has released them with a generous open license. IBM Plex Sans is not too shabby: (that image was grifted from a Font Squirrel preview page) The digit glyphs are especially nice for charts and the font iself is just different enough from Helvetica that I felt it was worth incl...
2708 sym R (625 sym/1 pcs) 6 img
Statebins Reimagined
A long time ago, in a github repo far, far away there lived a tiny package that made it possible to create equal area, square U.S. state cartograms in R dubbed statebins. Three years have come and gone and — truth be told — I’ve never been happy with that package. It never felt “right” and that gnawing feeling finally turned into action...
3777 sym R (2151 sym/6 pcs) 12 img
voteogram Is Now On CRAN
Earlier this year, I made a package that riffed off of ProPublica’s really neat voting cartograms (maps) for the U.S. House and Senate. You can see one for disaster relief spending in the House and one for the ACA “Skinny Repeal” in the Senate. We can replicate both here with the voteogram package (minus the interactivity, for now): library...
1721 sym R (3906 sym/4 pcs) 6 img
Sentiment Analysis of “A Christmas Carol”
Our family has been reading, listening to and watching “A Christmas Carol” for just abt 30 years now. I got it into my crazy noggin to perform a sentiment analysis on it the other day and tweeted out the results, but a large chunk of the R community is not on Twitter and it would be good to get a holiday-themed post or two up for the season. ...
7781 sym R (4542 sym/7 pcs) 4 img
A Public Apology to Tal/R-Bloggers + The Trouble With Tibbles
Over the past few weeks, I had been noticing that some posts in the R-bloggers feed were getting truncated in Feedly. I don’t remember when I noticed that since I usually click through immediately from the headline entry to the R-bloggers page vs read in Feedly since ultimately I want to get to the author’s site to see it formatted they way t...
3056 sym 8 img
The Cost of True Love (a.k.a. The Tidy — and expensive! — Twelve Days of Christmas)
I’m in the market for Christmas presents for my true love, @mrshrbrmstr, and thought I’d look to an age-old shopping list for inspiration. Just what would it set me back if I decided to mimic the 12 Days of Christmas in this modern day and age? Let’s try to do the whole thing in R (of course!). We’ll need to: Grab the lyrics Parse the ly...
1196 sym 2 img
A Workaround For When Anti-DDoS Also Means Anti-Data
More sites are turning to services like Cloudflare due to just how stupid-easy it is to DDoS a site. Sometimes the DDoS is intentional (malicious). Sometimes it’s because your bot didn’t play nice (stop that, btw). Sadly, at some point, most of us with “vital” sites are going to have to pay protection money to one of these services unless...
2513 sym R (926 sym/1 pcs) 8 img
Inter-operate with ‘MQTT’ Message Brokers With R (a.k.a. Live! BBC! Subtitles!)
Most of us see the internet through the lens of browsers and apps on our laptops, desktops, watches, TVs and mobile devices. These displays are showing us — for the most part — content designed for human consumption. Sure, apps handle API interactions, but even most of that communication happens over ports 80 or 443. But, there are lots of po...
6451 sym R (1343 sym/2 pcs) 8 img
mqtt Development Log : On DSLs, Rcpp Modules and Custom Formula Functions
I know some folks had a bit of fun with the previous post since it exposed the fact that I left out unique MQTT client id generation from the initial 0.1.0 release of the in-development package (client ids need to be unique). There have been some serious improvements since said post and I thought a (hopefully not-too-frequent) blog-journal of the...
8034 sym R (7465 sym/12 pcs) 6 img
R⁶ Series — Random Sampling From Apache Drill Tables With R & sergeant
(For first-timers, R⁶ tagged posts are short & sweet with minimal expository; R⁶ feed) At work-work I mostly deal with medium-to-large-ish data. I often want to poke at new or existing data sets w/o working across billions of rows. I also use Apache Drill for much of my exploratory work. Here’s how to uniformly sample data from Apache Drill...
910 sym R (1273 sym/2 pcs)