Cookies help us display personalized product recommendations and ensure you have great shopping experience.

By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
SmartData CollectiveSmartData Collective
  • Analytics
    AnalyticsShow More
    big data analytics in transporation
    Turning Data Into Decisions: How Analytics Improves Transportation Strategy
    3 Min Read
    sales and data analytics
    How Data Analytics Improves Lead Management and Sales Results
    9 Min Read
    data analytics and truck accident claims
    How Data Analytics Reduces Truck Accidents and Speeds Up Claims
    7 Min Read
    predictive analytics for interior designers
    Interior Designers Boost Profits with Predictive Analytics
    8 Min Read
    image fx (67)
    Improving LinkedIn Ad Strategies with Data Analytics
    9 Min Read
  • Big Data
  • BI
  • Exclusive
  • IT
  • Marketing
  • Software
Search
© 2008-25 SmartData Collective. All Rights Reserved.
Reading: Comparing baseball pitcher styles with lattice graphics
Share
Notification
Font ResizerAa
SmartData CollectiveSmartData Collective
Font ResizerAa
Search
  • About
  • Help
  • Privacy
Follow US
© 2008-23 SmartData Collective. All Rights Reserved.
SmartData Collective > Big Data > Data Mining > Comparing baseball pitcher styles with lattice graphics
Data MiningPredictive Analytics

Comparing baseball pitcher styles with lattice graphics

DavidMSmith
DavidMSmith
5 Min Read
SHARE

Last night’s Bay Area R User’s Group meeting was on the topic of Building Web Dashboards, and focused on integrating analytics built using R into web-based applications.

Mike Driscoll showed his PitchFX application, which visualizes the performance of major league baseball pitchers. I was intrigued to learn that the MLB tracks a host of statistics about each pitch thrown by each pitcher in pro baseball games: the speed of the pitch, the type of pitch (fastball, curveball, changeup, etc.) and the X-Y location where the pitch enters the batter’s box. MLB have made these data available to the public, and Mike has created a neat application for visualizing it.

With PitchFX you can choose any pitcher from any team and get an instant analysis of his pitching style from the 2008 season. For example, here’s the analysis for the Red Sox’s Clay Buchholz:

Buchholz
Buchholz uses only four different pitches. The top row is a lattice chart showing the distributions of speeds for each type of pitch: fastballs are, uh, fast (80-85 mph and up); changeups are slower; sliders come at a range of speeds. But it’s when you combine the pitch speed with the location that things really get interesting: that’s what t…

More Read

Using decision management to surive an IT squeeze
Forecasting the Stock Market: Lessons Learned
Yo-Yo Ma, Social Scientist
Guest post: What is Data Mining – Explaining it to the Layman
The Ever-Increasing Importance of Predictive Analytics

Last night’s Bay Area R User’s Group meeting was on the topic of Building Web Dashboards, and focused on integrating analytics built using R into web-based applications.

Mike Driscoll showed his PitchFX application, which visualizes the performance of major league baseball pitchers. I was intrigued to learn that the MLB tracks a host of statistics about each pitch thrown by each pitcher in pro baseball games: the speed of the pitch, the type of pitch (fastball, curveball, changeup, etc.) and the X-Y location where the pitch enters the batter’s box. MLB have made these data available to the public, and Mike has created a neat application for visualizing it.

With PitchFX you can choose any pitcher from any team and get an instant analysis of his pitching style from the 2008 season. For example, here’s the analysis for the Red Sox’s Clay Buchholz:

Buchholz
Buchholz uses only four different pitches. The top row is a lattice chart showing the distributions of speeds for each type of pitch: fastballs are, uh, fast (80-85 mph and up); changeups are slower; sliders come at a range of speeds. But it’s when you combine the pitch speed with the location that things really get interesting: that’s what the bottom chart shows. Each dot is a pitch, and its location matches the location the pitch landed in the batter’s box. The redder the dot, the faster the pitch (likewise, the bluer the slower); the darker the dot, the more pitches in that location. (Mike used the colorspace package to generate the range of colors in the plot.) Here you can see some interesting characteristics of Buchholz’s pitching. Fastballs are high and left. Sliders come in two varieties: high above the plate but slow, or midspeed and to the right. Curveballs go low and slow, but occasionally hit the strike zone. Changeups are fairly localized, but the speed is unpredictable.

Mike also presented the technical details of how he created the PitchFX app. The charts are constructed in R, but R itself runs as a module of the Apache web server, thanks to Rapache. When you choose an analysis in the PitchFX web application the request is sent to Rapache, which in turn draws the data from a MySQL database for analysis in R. This creates a chart which in turn is sent to the web browser for display on your screen. The caching functionality of Apache means that charts are not needlessly regenerated unless the underlying data change. It’s a really well-put together application, and makes it easy and fun to compare the styles of your favourite pitchers.

Also in the same meeting, John Oram showed an outstanding app also using Rapache for visualizing environmental data in the Bay Area. More on that, tomorrow.

Dataspora: PitchFX viewer

TAGGED:data visualizationgraphsr
Share This Article
Facebook Pinterest LinkedIn
Share

Follow us on Facebook

Latest News

big data analytics in transporation
Turning Data Into Decisions: How Analytics Improves Transportation Strategy
Analytics Big Data Exclusive
AI and fund manager software
AI And The Acceleration Of Information Flows From Fund Managers To Investors
Artificial Intelligence Exclusive
sales and data analytics
How Data Analytics Improves Lead Management and Sales Results
Analytics Big Data Exclusive
ai in marketing
How AI and Smart Platforms Improve Email Marketing
Artificial Intelligence Exclusive Marketing

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

US Economic Census Treemap

4 Min Read

Analyzing Olympic Success by Country with Data Visualization

7 Min Read

Terabytes of trees

4 Min Read
advantages of data visualization
Big DataBusiness Intelligence

The Advantages of Data Visualization for Business

6 Min Read

SmartData Collective is one of the largest & trusted community covering technical content about Big Data, BI, Cloud, Analytics, Artificial Intelligence, IoT & more.

ai in ecommerce
Artificial Intelligence for eCommerce: A Closer Look
Artificial Intelligence
ai chatbot
The Art of Conversation: Enhancing Chatbots with Advanced AI Prompts
Chatbots

Quick Link

  • About
  • Contact
  • Privacy
Follow US
© 2008-25 SmartData Collective. All Rights Reserved.
Go to mobile version
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?