Monthly Archives: July 2014

Simulating species abundance data with coenocliner

July 31, 2014
By
Simulating species abundance data with coenocliner

Coenoclines are, according to the Oxford Dictionary of Ecology (Allaby 1998), “gradients of communities (e.g. in a transect from the summit to the base of a hill), reflecting the changing importance, frequency, or other appropriate measure of different species populations”. In much ecological research, and that of related fields, data on these coenoclines are collected and analyzed in a variety...

Read more »

Insert random NAs in a vector in R

July 30, 2014
By
Insert random NAs in a vector in R

I was recently writing a function which was going to need to deal with NAs in some kind of semi-intelligent way. I wanted to test it with some fake data, meaning that I was going to need a vector with some random NAs sprinkled in. After a few disappointing google searches and a stack overflow

Read more »

Bangalore workshop [ಬೆಂಗಳೂರು ಕಾರ್ಯಾಗಾರ]

July 30, 2014
By
Bangalore workshop [ಬೆಂಗಳೂರು ಕಾರ್ಯಾಗಾರ]

Second day at the Indo-French Centre for Applied Mathematics and the workshop. Maybe not the most exciting day in terms of talks (as I missed the first two plenary sessions by (a) oversleeping and (b) running across the campus!). However I had a neat talk with another conference participant that led to

Read more »

More Readable Code with Pipes in R

July 30, 2014
By
More Readable Code with Pipes in R

Several blog posts have made mention of the 'magrittr' package which allows functional arguments to be passed to functions in a pipes style fashion (David Smith ).This stylistic option has several advantages:  1. Reduced requirements of nested par...

Read more »

Accidental aRt

July 30, 2014
By
Accidental aRt

R is a very powerful language for creating custom data visualizations, but during the development process sometimes you make a mistake and things go horribly wrong. But sometime serendipity intervenes, and the (unintended) result can be quite beautiful. Accidental aRt, if you will. Curated by Kara Woo and Erika Mudrak, this fantastic Tumblr captures beautiful but unintended examples from...

Read more »

Refresh Old rCharts+flickr post with httr and pipeR

July 30, 2014
By

The R world keeps moving, and I noticed this old post didn’t work anymore, so I have rewritten it to use Hadley Wickham's httr instead of Rflickr for two reasons: Rflickr is not working for me anymore httr is a very helpful package for navigating the "what was scary to me" world of http and oauth In...

Read more »

ideal point graphics, via d3

July 30, 2014
By
ideal point graphics, via d3

I’ve updated some of the graphical displays of the ideal point estimates I serve up here. I’ve rendered some of these in d3, with some rollover lah-de-dah: (1) 113th House ideal points in a long “caterpillar” format; (2) scatterplot of ideal point against Obama 2012 vote in district. Screenshot of the scatterplot appears below. My

Read more »

drinkR: Estimate your Blood Alcohol Concentration using R and Shiny.

July 30, 2014
By
drinkR: Estimate your Blood Alcohol Concentration using R and Shiny.

Inspired by events that took place at UseR 2014 last month I decided to implement an app that estimates one’s blood alcohol concentration (BAC). Today I present to you drinkR, implemented using R and Shiny, Rstudio’s framework for building web apps using R. So, say that I had a good dinner, drinking a couple of glasses...

Read more »

Log Management on SmartOS featuring DTrace and Node.js

July 30, 2014
By

Machine-generated log data is a rich source of information that is used more and more frequently outside of the traditional scenarios of "developer debugging." Today, log data is used across the business for production monitoring, product usage tracking, application performance management, mobile…

Read more »

Log Management on SmartOS featuring DTrace and Node.js

July 30, 2014
By

Machine-generated log data is a rich source of information that is used more and more frequently outside of the traditional scenarios of "developer debugging." Today, log data is used across the business for production monitoring, product usage tracking, application performance management, mobile…

Read more »