Visualising NBA shot charts in Tableau

In my last post I produced some NBA shot charts in R using data scraped from stats.nba.com and ggplot2. This time I extracted all shot location data available for 490 players and linked it to a Tableau dashboard.

The first dashboard shows each shot attempted during the 2014-15 NBA Regular Season. On the right, it is possible to select team, player, shot type, shot zone and shot range. The table above the chart is also updated in line with the filter selection (click on the image to open the dashboard on a new window). Continue reading

Advertisements

How much does a yard cost in the NFL?

NFL teams spend a lot of money on their key players, specially running backs whose objective is to conquer the most amount of rushing yards as possible. But how to measure the return on investment in running backs? Are teams getting the return expected? How much does a rushing yard cost in the NFL?

I plotted rushing yards for each running back during the regular NFL season of 2014 and their respective average yearly salary (the total contracted amount divided by contract duration). The result shows an expected positive correlation: the more money spent on running back salaries the more rushing yards a team is expected to gain. Running backs perceived as “good” tend to get more money, right? However this is not true for every team when we look at the big picture. Continue reading