Blog Archives

Mapping Power Outages In Maine With R

November 27, 2013
By
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

Read more »

Alternative to Grouped Bar Charts in R

October 27, 2013
By
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...

Read more »

Visualizing “ObamaCare-related” Job Cuts

September 28, 2013
By
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

Read more »

Animated IRL Pirate Attacks In R

September 19, 2013
By
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?)

Read more »

Send Mac OS Notifications From RStudio *Server*! (via Growl)

September 14, 2013
By
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

Read more »

Send Mac OS Notifications From R

September 12, 2013
By
Send Mac OS Notifications From R

The data retrieval and computation operations are taking longer and longer as we start cranking through more security data and I’ll often let tasks run in the background whilst performing more mundane tasks or wasting time on Twitter. For folks using RStudio Desktop on a Mac, you can use the #spiffy terminal-notifier from Julien Blanchard

Read more »

Rforecastio – Simple R Package To Access forecast.io Weather Data

September 8, 2013
By
Rforecastio – Simple R Package To Access forecast.io Weather Data

It doesn’t get much better for me than when I can combine R and weather data in new ways. I’ve got something brewing with my Nest thermostat and needed to get some current wx readings plus forecast data. I could have chosen a number of different sources or API’s but I wanted to play with

Read more »

Use Fluid On MacOS To Build Per-RStudio Server “Dedicated” Clients

August 25, 2013
By
Use Fluid On MacOS To Build Per-RStudio Server “Dedicated” Clients

I’m jumping around analytics environments these days and have to leave the comfort of my Mac’s RStudio Desktop application to use various RStudio Server instances via browser. While I prefer to use Chrome, the need to have a “dedicated” RStudio Server client outweighs the utility of my favorite browser. This is where Fluid (@FluidApp by

Read more »

Reverse IP Address Lookups With R (From Simple To Bulk/Asynchronous)

August 12, 2013
By

R lacks some of the more “utilitarian” features found in other scripting languages that were/are more geared—at least initially—towards systems administration. One of the most frustrating missing pieces for security data scientists is the lack of ability to perform basic IP address manipulations, including reverse DNS resolution (even though it has nsl() which is just

Read more »

Visualizing Risky Words — Part 2

March 9, 2013
By
Visualizing Risky Words — Part 2

This is a follow-up to my Visualizing Risky Words post. You’ll need to read that for context if you’re just jumping in now. Full R code for the generated images (which are pretty large) is at the end. Aesthetics are the primary reason for using a word cloud, though one can pretty quickly recognize what

Read more »