News for hackers. Stuff that matters.
Re:The Reddit Front Page Is Not a Meritocracy by minimaxir on Thursday November 06, 2014 @11:46AM (#8567910)
A note about the graphics: all the charts were made with R/ggplot2. Not only ggplot2, but basic ggplot2: the charts in the blog post can be made with about 5 lines of code maximum each.

You can customize ggplot2 for even more beautiful charts, such as the ones used in my analysis of HN comments: http://minimaxir.com/2014/10/hn-comments-about-comments/

Note that reproducing this analysis for the HN front page is harder since there is a lot that happens behind the scenes that cannot be generalized. Here's an attempt at performing such an analysis (note dang's comments): https://news.ycombinator.com/item?id=8533757

Re:The Reddit Front Page Is Not a Meritocracy by 12423gsd on Thursday November 06, 2014 @02:58PM (#8569384)
I really enjoy using ggplot2, but the basic "theme" is terrible.

- They tried too hard to do a Tuft* - but it's actually way too flashy.

- Basically the issue is that it's not generic enough. Whenever you see a ggplot2 plot it's always screaming at you "I WAS MADE IN ggplot2!!" Just KISS...

- The grey background is completely unusable if you want to print out your charts!

- The default pastel colors (ie. PowerPoint 2012) are always a disaster for readability. In meetings people constantly can't tell them apart and they are definitely not colorblind friendly.

It' a shame b/c each script I write ends up having to have an obnoxiously long theme declaration to make it look "normal"

* I think most people miss the Tuft's point. He presents a way about thinking about data presentation. Instead people just look at it and think "oooo! That looks pretty. Let me copy what he did". The guy has his own personal style - it's definitely nice, but the point isn't to copy it.

EDIT: For those thinking about learning ggplot2.. maybe wait off for a bit. It seems like it'll be deprecated soon and replaces with ggvis.

Re:The Reddit Front Page Is Not a Meritocracy by minimaxir on Thursday November 06, 2014 @03:03PM (#8569413)
NB: Here is a paper the derivation of the ggplot styles: http://vita.had.co.nz/papers/layered-grammar.pdf

I would recommend using theme_bw(), which helps solve some of the problem with the gray background.

EDIT: This is ggvis: http://blog.rstudio.org/2014/06/23/introducing-ggvis/

This is news to me, so I'll look into it to see how it differs from ggplot2.

EDIT 2: It seems more like that the difference is that ggvis is more for interactive charts, but then it requires a dependency on Shiny, which is not optimal for blog posts.

Re:The Reddit Front Page Is Not a Meritocracy by 12423gsd on Thursday November 06, 2014 @03:29PM (#8569549)
Thanks for linking the paper! I'll definitely read over that. I've heard it mentioned before ...

I'm definitely not an R guru or "in" on the latest news, but it seems that Hadley Wickham (who probably single handedly is the reason R is still relevant) now works for the RStudio guys and he's reworking his tools. plyr is now dplyr and gpplot2 is now ggvis. And there also another tool called tinyr. My understanding is that they're still in development, but they'll ultimately provide an "integrated" ecosystem for processing data.frames (with hooks into the RStudio IDE)

He talks about it at the beginning of this video https://www.youtube.com/watch?v=wki0BqlztCo

Re:The Reddit Front Page Is Not a Meritocracy by jedmeyers on Thursday November 06, 2014 @01:49PM (#8568883)
By the way, there is an awesome course track on Data Science from Johns Hopkins on Coursera right now, which includes introduction to R.

https://www.coursera.org/specialization/jhudatascience/1?utm...

Re:The Reddit Front Page Is Not a Meritocracy by mikecb on Thursday November 06, 2014 @12:50PM (#8568445)
My favorite example of ggplots ease and customizability comes from xkcd style graphs:

http://stackoverflow.com/questions/12675147/how-can-we-make-...

Re:The Reddit Front Page Is Not a Meritocracy by beambot on Thursday November 06, 2014 @01:39PM (#8568803)
Not all the charts are ggplot2. It looks like the big interactive one is javascript, specifically HighCharts.
Re:The Reddit Front Page Is Not a Meritocracy by pit on Thursday November 06, 2014 @02:32PM (#8569176)
Thanks! I love those chunky graphs, definitely going to play around with ggplot2 a bit.