The financial meltdown, to a trance beat

[This article was first published on Revolutions, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

With the FMS Symphony by csv soundsystem you can listen to the Global Financial Crisis as you watch interest rates plunge while the Treasury floods the market with emergency funds. 

Csv symphony

The source data for the chart and music comes from daily emails (like this one) sent by the US Treasury summarizing the cash spending and borrowing of the Federal government. (Incredibly, this data is not available in any structured format ready for analysis.) The CSV Soundsystem team then used R data processing (plyr, reshape2), sonification (tuneR) and visualization (aplpack) packages to produce the chart, animation and music. 

We used principal component analysis to rotate the 52 line-items and plotted the 15 highest-loaded components as Chernoff faces. We plotted interest rate and federal account balance with line-width as standard deviation of all the line-items.

We represented similar data in audio. Chords were selected based on the derivative of account balance, and a melody was composed based on the federal interest rate. We also included a contrapuntal riff driven by the distance between accumulated federal debt and the legal debt ceiling.

If you enjoyed the house-trance stylings of federal treasury statistics, you can even download the music track for your playlist. If you want to embark on a similar project, you can find more behind-the-scenes details and the code at GitHub

csv soundsystem: FMS Treasury

To leave a comment for the author, please follow the link and comment on their blog: Revolutions.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)