News for hackers. Stuff that matters.
Re:Ggplot2 for python by mbq on Tuesday October 15, 2013 @06:02AM (#6552379)
It is certainly a pollution of code -- a necessity to convert a good, efficient data structure which base graphics can plot into some specific form will always seem redundant from a programming point of view (and I was replying to a programmer).

Obviously the situation is opposite when one considers, let's say, "analysts", i.e. people that expect to be able to completely ignore the form of the data and focus purely on the content -- for them your stack of tools is a pure gold, even with its trade-offs.

Re:Ggplot2 for python by hadley on Tuesday October 15, 2013 @07:59AM (#6552693)
I'd love to see an example of that - I agree that you might have to do some data transformation to use ggplot2, but I think the net effect is still fewer lines of code than with base graphics (except for v. simple graphics).

Some clarification about what you mean regarding efficiency would be useful - do you prefer arrays?

Re:Ggplot2 for python by mbq on Tuesday October 15, 2013 @06:10PM (#6556717)
Boxplots from a list, matplot of a matrix, all the cool default plot methods for various complex objects like clusterings, trees, models...

Maybe I'm alone in that, but I believe the power of R lies in its resilience and the fact that it allows me to write code that is equally obvious in what it does as how it does. The philosophies of one-true-data-structure and natural-language-like expressions doesn't play well with it, though I admit they are very useful for people accustomed to a declarative programming.