Blog Archives

Adding a subtitle to ggplot2

March 14, 2016
By
Adding a subtitle to ggplot2

A couple of days ago (2016-03-12) a short blog post by Bob Rudis appeared on R-bloggers.com, "Subtitles in ggplot2". I was intrigued by the idea and what this could mean for my own plotting efforts, and it turned out to be very simple to apply. (Note that Bob's post originally appeared on his own blog,...

Read more »

Book review: Storytelling With Data

March 6, 2016
By

by Cole Nussbaumer Knaflic (2015, Wiley)The Sabermetric bookshelf, #4One of the great strengths of R is that there are some robust (and always improving) packages that facilitate great data visualization and tabular summaries. Beyond the capabilities built into the base version of R, packages such as ggplot2 (my favourite), lattice, and vcd and vcdExtra extend the possibilities for rendering...

Read more »

Run scoring trends: using Shiny to create dynamic charts and tables in R

January 7, 2015
By

Or, Retracing my stepsAs I’ve been learning the functionality of Shiny, the web app for R, I have used the helpful tutorials available from the developers at RStudio. At some point, though, one needs to break out and develop one’s own application.  My Shiny app “MLB run scoring trends” can be found at (

Read more »

Left-handed catchers

July 23, 2014
By
Left-handed catchers

Benny Distefano – 1985 Donruss #166 (source: baseball-almanac.com) We are approaching the twenty-fifth anniversary of the last time a left-handed throwing catcher appeared behind the plate in a Major League Baseball game; on August 18, 1989 Benny Distefano made his third and final appearance as a catcher for the Pirates. Distefano’s accomplishment was celebrated five years...

Read more »

Book Review: Analyzing Baseball Data with R

December 17, 2013
By
Book Review: Analyzing Baseball Data with R

by Max Marchi and Jim Albert (2014, CRC Press)The Sabermetric bookshelf, #3Here we have the perfect book for anyone who stumbles across this blog--the intersection of R and baseball data. The open source statistical programming environment of R is a gr...

Read more »

A few random things

December 1, 2013
By

Read more »

Read more »

Fair weather fans, redux

September 1, 2013
By
Fair weather fans, redux

Fair weather fans, redux Or, A little larger small sample On August 11 the Victoria HarbourCats closed out their 2013 West Coast League season with a 4-3 win over the Bellingham Bells. In an earlier...

Read more »

Fair weather fans? (An R scatter plot matrix)

July 18, 2013
By
Fair weather fans? (An R scatter plot matrix)

(This article was first published on Bayes Ball, and kindly contributed to R-bloggers) The Victoria HarbourCats are roughly half way through their inaugural season in the West Coast League, and currently lead the league in average attendance.  In a recent conversation with one of the team’s staff, he mentioned that after the first game in early June, the fans...

Read more »

Annotating select points on an X-Y plot using ggplot2

June 16, 2013
By
Annotating select points on an X-Y plot using ggplot2

or, Is the Seattle Mariners outfield a disaster?The BackstoryEarlier this week (2013-06-10), a blog post by Dave Cameron appeared at USS Mariner under the title “Maybe It's Time For Dustin Ackley To Play Some Outfield”. In the first paragraph, Cameron describes to the Seattle Mariners outfield this season as “a complete disaster” and Raul Ibanez as...

Read more »

Major League Baseball run scoring trends with R’s Lahman package

June 4, 2013
By
Major League Baseball run scoring trends with R’s Lahman package

The statistical software R has an ever-expanding array of packages that provide pre-programmed functions and datasets. One such package is named Lahman, bundling the contents of the Lahman database into a quick-and-easy resource for R users. In addition to the data tables, the package resources also contain a variety of analyses and graphics undertaken using...

Read more »

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)