Publications by Martin Monkman

Fair weather fans, redux

01.09.2013

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 post, written mid-way through the season after the 'Cats had played 15 home games, I created a scatter plot matrix to look for correlations between ...

4913 sym R (3671 sym/6 pcs) 6 img

A few random things

01.12.2013

Read more » Related To leave a comment for the author, please follow the link and comment on their blog: Bayes Ball. R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job. Want to share your content on R-bloggers? clic...

404 sym

Book Review: Analyzing Baseball Data with R

17.12.2013

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 great tool for anyone analyzing baseball data, from the robust analytic functions to the great vi...

7114 sym 2 img

Left-handed catchers

23.07.2014

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 accompl...

5561 sym R (6362 sym/9 pcs) 6 img 2 tbl

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

07.01.2015

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 (https://monkmanmh.shinyapps.io/MLBr...

3739 sym

Book review: Storytelling With Data

06.03.2016

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 v...

6037 sym

Adding a subtitle to ggplot2

14.03.2016

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, as “Subtitles in ggpl...

3552 sym R (2760 sym/4 pcs) 4 img 2 tbl

Subtitles and captions with ggplot2 v.2.2.0

15.11.2016

Back in March 2016, I wrote about an extension to the R package ggplot2 that allowed subtitles to be added to charts. The process took a bit of fiddling and futzing, but now, with the release of ggplot2 version 2.2.0, it’s easy.Let’s retrace the steps, and create a chart with a subtitle and a caption, the other nifty feature that...

3362 sym R (905 sym/5 pcs) 6 img

Updated Shiny app

26.03.2017

A short post to alert the world that my modest Shiny application, showing Major League Baseball run scoring trends since 1901, has been updated to include the 2016 season. The application can be found here:https://monkmanmh.shinyapps.io/MLBrunscoring_shiny/.In addition to the underlying data, the update removed some of the processing...

1565 sym

Smoke from a distant fire

31.08.2018

Forest fires and air qualityAugust 31, 2018It was recently announced that during 2018, British Columbia has seen the most extensive forest fire season on record. As I write this (2018-08-31) there are currently 442 wildfires burning in British Columbia. These fires have a significant impact on people’s lives–many areas are under evacuation or...

6308 sym R (2449 sym/9 pcs) 16 img