Category: R

  • Here are some star plots for major league baseball batters, pitchers, and ball parks.  The star plots represent the outcomes of a particular at bat for a hitter, a pitcher, or at a given ball park.  For each plot, batter, pitcher, and ball park was varied, while the other two parameters were filled in with…

  •   Canada loves winning bronze medals….

  • StatsInTheWild MLB rankings as of August 6, 2012 at 8:17pm.  SOS=strength of schedule Team Rank Change Record ESPN TeamRankings.com SOS Run Diff NYY 1 – 63-44 3 1 5 +92 Texas 2 – 63-44 4 2 13 +83 LA Angels 3 – 58-51 9 6 7 +49 Washington 4 ↑2 65-43 2 4 23 +82…

  • First off, for the R nerds out there, (If you don’t care about R, skip to the next paragraph) I’m quickly becoming a huge fan of ggplot2.  Below is an example of combining a facet grid with pie charts using polar coordinates.  Pretty cool.  (I know most graphics people hate pie charts, but I think…

  • Last week, I posted some boxplots of Olympic athletes’ ages by sport, which I then updated using ggplot2 to look nicer.  I had a few requests for the code that I used to generate these plots, so I posted my code here. Isomorphismes has suggested (politely) some improvements to my code in this post, “Outer Product…

  • Here is a graph of the ATP points for the top 8 tennis players in the world since 2009.  It’s interesting to note that since 2009, Andy Murray has been ranked above each of Nadal, Djokovic, and Federer at some point, but never above them all at once.  Also, over that same time period n0one…

  • About a week ago, Roger Federer won his seventh Wimbledon title, which ties Pete Sampras, and his 17 Grand Slam title overall, extending that record even further.  Less (more?) importantly, Mr. Federer regains the ranking of number 1 in the word by the slimmest of margins (11075 to 11000) over Novak Djokovic.  Here is my…