TidyX 40: plotly & APIs

This week, Ellis Hughes and I delve a bit more into the functionality of {plotly}. We start by discussion a really cool, interactive, sunburst plot that Jackie Torres created to display the BBC’s top 100 women of 2020 (data provided by the TidyTuesday Project).

After going through Jackie’s code we talk briefly about APIs as we scrape some data from baseballsavant.mlb.com. Ellis then takes that data and creates our own {ploty} graphic where you can select any batter and get a totally interactive figure of all of the pitches he faced and details about the pitch (speed, outcome, etc.).


To watch the screen cast, CLICK HERE.

To access our code, CLICK HERE.