Down on the Farm

Down on the Farm

Share this post

Down on the Farm
Down on the Farm
How To: Year-Over-Year Change in K%-BB%
Copy link
Facebook
Email
Notes
More
"How To" Tutorials

How To: Year-Over-Year Change in K%-BB%

Building a scatterplot to display year-over-year change in K%-BB% every season from 1990-2022

Scott & Josh's avatar
Scott & Josh
Nov 04, 2022
∙ Paid
3

Share this post

Down on the Farm
Down on the Farm
How To: Year-Over-Year Change in K%-BB%
Copy link
Facebook
Email
Notes
More
1
Share

Today’s tutorial will walk through how to make the year-over-year scatter plots of the change in K%-BB% from yesterday’s post. The tutorial posts will be for premium subscribers only, but we’ll occasionally post them for everyone like we did a few weeks ago. You can find that post here.

If you are a premium subscriber and don’t care about R or coding, you can skip past this section and go right to the updates from the Arizona Fall League last night by clicking HERE.

Share Down on the Farm

Important note: The tutorial posts are going to assume that the reader has at least a basic understanding of R. If you’ve never written a line of code or worked with baseball data, there are many great introductory resources out there. A great place to start is R for Data Science by Hadley Wickham & Garrett Grolemund. It covers everything you’ll need to know to begin working with data, performing analysis, and building visualizations. RStudio also puts out many great resources like this guide for getting started in R. In our tutorials we’ll strictly be using baseball data, which in our opinion, makes it more fun to learn how to write code in R.


MLB Year-Over-Year Changes in K%-BB% (1990-2022)

To make it as straight forward as possible, we’ll include a link to a GitHub repository that houses the historical data so that you can easily download what is needed to recreate the plot.

Keep reading with a 7-day free trial

Subscribe to Down on the Farm to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Josh
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More