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
    image fx (67)
    Improving LinkedIn Ad Strategies with Data Analytics
    9 Min Read
    big data and remote work
    Data Helps Speech-Language Pathologists Deliver Better Results
    6 Min Read
    data driven insights
    How Data-Driven Insights Are Addressing Gaps in Patient Communication and Equity
    8 Min Read
    pexels pavel danilyuk 8112119
    Data Analytics Is Revolutionizing Medical Credentialing
    8 Min Read
    data and seo
    Maximize SEO Success with Powerful Data Analytics Insights
    8 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

5 ways to reduce cost with predictive analytics
A Fool and Their Data are Soon Parted
Google Chrome wont work with Google Analytics
72% of People Aren’t Familiar with Hosted VoIP
10 Important Ways Data Visualization Can Benefit Your Content Strategy

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

image fx (2)
Monitoring Data Without Turning into Big Brother
Big Data Exclusive
image fx (71)
The Power of AI for Personalization in Email
Artificial Intelligence Exclusive Marketing
image fx (67)
Improving LinkedIn Ad Strategies with Data Analytics
Analytics Big Data Exclusive Software
big data and remote work
Data Helps Speech-Language Pathologists Deliver Better Results
Analytics Big Data Exclusive

Stay Connected

1.2kFollowersLike
33.7kFollowersFollow
222FollowersPin

You Might also Like

Converting time zones in R: tips, tricks and pitfalls

9 Min Read

New Trends in BI, Analytics and Social Media

9 Min Read

Not to scale

2 Min Read

Ease-of-use Key to Successful Business Intelligence Deployments

10 Min Read

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

data-driven web design
5 Great Tips for Using Data Analytics for Website UX
Big Data
ai is improving the safety of cars
From Bolts to Bots: How AI Is Fortifying the Automotive Industry
Artificial Intelligence

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?