4 ms·
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
by hadley 13y ago
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?
- mbq 13y agoBoxplots 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.