How to Generate a Stat Graph (Daily Data Example)
September 17, 2010 Leave a Comment
In this post we will work through an example to illustrate how to create a graph using the SportsMaestro Baseball Web App. In the example considered here, we will graph the cumulative ERA of Tim Lincecum and Chris Carpenter during the 2009 MLB season to produce a graphical representation of their battle for the NL ERA title.
- Go to the Baseball Web App: Visit this link: http://sportsmaestro.com/baseball then click on the “Stat Graphs” tab.
- Select Button Box Settings: Select PITCH, PLAYER, DAY (since we want to graph day-by-day stats), and STANDARD (since we want to graph ERA which is a standard stat).
- Check Cumulative: Check the Cumulative checkbox since we want cumulative ERA not the ERA for each particular appearance.
- Set the Filters: In this example we only need to set the year filter. Set it to 2009.
- Input Players: First input Chris Carpenter into the text input box in the Player/Team Search panel, select his name when it pops up in the menu below, then press enter. Carpenter should pop up to the right in the Selected area. Do the same for Tim Lincecum.
- Add ERA Trend Line for Each Player: Now that Carpenter and Lincecum are both in the Selected area you can generate trends for each. First select Chris Carpenter from the “Select Player/Team” pull down in the Plot Options panel. Then select ERA from the “Select Stat To Graph” pull down. Then click on the EXECUTE button to plot the trend. The trend name should pop up to the right and the graph below should show the trend. Next do the same for Lincecum.
- The Result: The resulting graph should look like this. Lincecum had a rough start to the season and Carpenter had a late start but their ERA’s converged mid season and they battled it out for the ERA title until the end of the season where Linceum came out on top.
- Get the Link: To get the URL for this graph for your own reference or to post to a forum or share with friends, click the “Link” button then copy the link that appears in the orange popup window. Here’s the link to this Stat Graph.

Stat Selection Button Box

Cumulative Check Box

Year Selection Pull-down

Player/Team Selection Panel

Graph Options Panel

SportsMaestro Stat Graph

Get Graph Link