Statmuse.com has a really nice implementation of this in their natural-language sport statistics engine. You can see an image here <a href="http://i.imgur.com/ukganMx.png" rel="nofollow">http://i.imgur.com/ukganMx.png</a><p>...or if you're in the beta, here: <a href="https://www.statmuse.com/nba/search?q=michael%20jordan%20shot%20chart" rel="nofollow">https://www.statmuse.com/nba/search?q=michael%20jordan%20sho...</a>
The plots showing the full dataset as a scatter plot on the court are great, and the most useful plots in this post. I also like the outlines of the court (though if I were making these charts I’d draw the court lines in gray or pale orange or something so the data would stand out more).<p>The heat maps are much less useful IMO, because the colors are poorly chosen and the data generalization/binning methods seem kind of arbitrary. Until the shot count gets up into the tens of thousands or more, just show all the data. (If e.g. aggregating all the shots from the whole league, then some kind of binning would become necessary.)<p>The marginal histograms showing density by x/y coordinates on the court are essentially useless in my opinion. Dramatically more interesting would be marginal histograms related to angle and distance in terms of polar coordinates centered at the basket (it might be necessary to ignore the angles for positions very close to the basket, where angle is kind of irrelevant). To make them even more informative, since the 3 point line isn’t a perfect semicircle, make marginal distributions (in terms of angle and distance) of separate categories of 2 point and 3 point shots, and stack them. Or even three categories showing dunks/layups, 2 point jump shots, and 3 point jump shots.
We include shot charts on Basketball-Reference.com and allow for side-by-side comparisons as well.<p><a href="http://www.basketball-reference.com/players/h/hardeja01/shooting/2015/" rel="nofollow">http://www.basketball-reference.com/players/h/hardeja01/shoo...</a><p><a href="http://www.basketball-reference.com/play-index/plus/shooting.cgi?player_id=hardeja01&year_id=2015&advanced=compare&comp_pid=jamesle01&comp_year=2015" rel="nofollow">http://www.basketball-reference.com/play-index/plus/shooting...</a>
Krossover built an interactive version of this that plays clips of each shot taken. Link here jumps to a brief overview of it <a href="https://youtu.be/3MZF_u-6OT4?t=1m5s" rel="nofollow">https://youtu.be/3MZF_u-6OT4?t=1m5s</a>
Very cool! I came across Peter Beshai's work a couple of weeks ago - he has a great d3.js visualisation of basketball shots that might be of interest :)<p><a href="http://peterbeshai.com/buckets" rel="nofollow">http://peterbeshai.com/buckets</a>
I have a growing interest in statistics, partially coming from a lifelong love of basketball. I am comfortable with Python and have done a few small projects in it. How can I use my Python skill with statistics for more projects like this? Can anyone point me the right way? Does not have to be basketball related at all.
Interesting, one of my favourite professors uses Processing for the Introduction to Programming course at my school and decided to make students plot based on an array he pulled from NBA top 10 player data (or at least 10 or so players). Definitely forwarding this one to him, maybe it could be turned into a challenge for students. I wonder how this would look in Processing with Python (it's supported as an addin).
For the life of me, I can't figure out how to navigate to this page: <a href="http://stats.nba.com/player/#!/202322/tracking/shotslogs/" rel="nofollow">http://stats.nba.com/player/#!/202322/tracking/shotslogs/</a> I don't see /shotslogs/ anywhere on stats.nba.com
A version in Go: <a href="https://twitter.com/ajstarks/status/628262271026876416" rel="nofollow">https://twitter.com/ajstarks/status/628262271026876416</a>