Publications by hrbrmstr
Send Mac OS Notifications From RStudio *Server*! (via Growl)
Having received a couple follow-ups to the OS X notifications on RStudio Desktop for the Mac post, I was determined to find a quick hack to get remote notifications to OS X working from (at least) RStudio Server instances running on the same network. It turns out the hack was pretty straightforward just by using a combination of Growl and gntp-se...
2387 sym R (408 sym/1 pcs) 4 img 1 tbl
Animated IRL Pirate Attacks In R
Avast me hearRties! (ok, enough of the pirate speak in a blog post) It wouldn’t be TLAPD without out some modest code & idea pilfering from Mark Bulling & Simon Raper. While those mateys did a fine job hoisting up some R code (your really didn’t think I’d stop with the pirate speak, did you?) for their example, I took it one step furrrrther...
976 sym R (1554 sym/1 pcs) 1 img 1 tbl
Visualizing “ObamaCare-related” Job Cuts
I was reviewing RSS feeds when I came across this story about “ObamaCare Employer Mandate: A List Of Cuts To Work Hours, Jobs” over on Investors.com. Efficacy of the law notwithstanding, I thought it might be interesting to visualize the data since the folks over at Investors.com provided a handy spreadsheet that they seem to maintain pretty ...
4165 sym R (2471 sym/5 pcs) 4 img 5 tbl
Alternative to Grouped Bar Charts in R
The #spiffy @dseverski gave me this posit the other day: Hey, @hrbrmstr, doughnut chart aside, how would you approach the first graph at http://t.co/zjHoHRVOeo? Bump chart? Trend line? Leave as is?— David F. Severski (@dseverski) October 25, 2013 and, I obliged shortly thereafter, but figured I’d toss a post up on the blog before heading to ...
3587 sym R (884 sym/1 pcs) 2 img 1 tbl
Mapping Power Outages In Maine With R
UPDATE: A Shiny (dynamic) version of this is now available. We had yet-another power outage this morning due to the weird weather patterns of the week and it was the final catalyst I needed to crank out some R code to map the affected counties. Central Maine Power provides an outage portal where folks can both report outages and see areas impacte...
1271 sym R (1826 sym/1 pcs) 2 img 1 tbl
Mapping Power Outages in Maine Dynamically with Shiny/R
I decided to forego the D3 map mentioned in the previous post in favor of a Shiny one since I had 90% of the mapping code written. I binned the ranges into three groups, changed the color over to something more pleasant (with RColorBrewer), added an interactive table for the counties with outage and have the elements updating every minute. You c...
866 sym
Points, Polygons and Power Outages
Most of my free coding time has been spent tweaking a D3-based live power outage tracker for Central Maine Power customers (there’s also a woefully less-featured Shiny app for it, too). There is some R associated with the D3 vis, but it’s limited to a cron job that’s makes the CSV files for the sparklines in D3 vis by reading historical ou...
3878 sym R (8393 sym/12 pcs) 6 img 12 tbl
Change The Default “Shell…” Action In RStudio for OS X
RStudio is my R development environment of choice and I work primarily on/in Mac OS X. While it’s great that Apple provides a built-in Terminal application, I prefer to use iTerm 2 when I need to do work at a shell. The fine folks at RStudio provide a handy Shell… menu item off the Tools menu, but it (rightly) defaults to using Apple’s Term...
1452 sym R (324 sym/1 pcs) 1 tbl
Lies, Damn Lies, “Data Journalism” and Charts That Don’t Start at 0
This tweet by @moorehn (who usually is a superb economic journalist) really bugged me: Alarming chart of employment for people between 25 and 54. It's like a ski jump. #SOTUecon pic.twitter.com/KNGYmwI88C— Heidi N. Moore (@moorehn) January 29, 2014 I grabbed the raw data from EPI: (http://www.epi.org/files/2012/data-swa/jobs-data/Employment%20...
1171 sym R (1034 sym/2 pcs) 2 img 1 tbl
Data Driven Security Roundup: betaPERT, Shiny, Honeypots, Passwords & Reproducible Research
Jay Jacobs (@jayjacobs)—my co-author of the soon-to-be-released book Data-Driven Security—& I have been hard at work over at the book’s sister-blog cranking out code to help security domain experts delve into the dark art of data science. We’ve covered quite a bit of ground since January 1st, but I’m using this post to focus more on wha...
2034 sym