by minimaxir · 10y ago · 0 comments
The ggplot2 code is not formatted one-function-per-line like the base code. It may be slightly more LoC for base graphics, but it's very clear what is happening with the ggplot2 and design, which is a far more important attribute than LoC.
Once your graph reaches a certain level of complexity, though, or requires a certain degree of customization, I think base graphics regain the edge. At that point I prefer the level of control you get by drawing things from scratch with points(), lines(), text(), etc.