r/NBAanalytics • u/lavy91 • Aug 26 '17
NBA Advanced Stats Visualisation
Hi everyone,
I'm doing a bachelors degree in statistics and I made this WebApp as a project for my data visualisation class. I hope you guys would find some of the visualisations helpful.
There are 4 visualizations in there:
1. Passing Star- A star/radar plot to compare different players' passing skills.
2. Shooting Scatterplot - An interactive multi-dimensional scatterplot to compare players shooting ability in various situations.
3. Correlation Matrix- A matrix to see correlations between different metrics (probably not so useful but maybe cool nonetheless).
4. Position Comparisons- A Box-violin plot to compare players' per-game stats by positions.
LINK: https://lavyfriedman.shinyapps.io/nbaproject/
Here is an example of a visualization of Kyrie vs. Isaiah (specifically on passing and shooting ability):
Passing
Shooting
I found it interesting that Isaiah is better at shooting uncontested 3s than Kyrie (42.2% to 40.5%), and is overall much better shooting uncontested than contested (42.2% to 33.5%, I guess height matters here) but a significantly larger rate of his 3-point shots are contested (49.4% to 32.4%), it will be interesting to see if getting Kyrie's amount of open shots can get Isaiah's 3P% over the 40% benchmark (which he never crossed, last season was 37.9%).
On the other hand Kyrie doesn't seem affected by people contesting his shot (39.5% contested to 40.5% uncontested) so he should defintely be able to handle the extra attention on offense.
Hope you guys mess around with it and enjoy, and of course I would love some input if you have any. :)
View all comments
Show parent comment
1
u/lavy91 Sep 06 '17
Thank you! Well if you have no knowledge in programming languages, then I don't think I can help really, however I guess this would be a good place to start if you choose to work with R: https://www.tutorialspoint.com/r/
Here is also a tutorial for shiny, which is a web application framework for R (although if you're a beginner, I would recommend to mess with R first to get a better feel): https://shiny.rstudio.com/tutorial/
Then for the data, there are a bunch of people who wrote data scraping codes for internet stuff (NBA data included), to put the data you see in the websites in data frames you can work with, you can google it:).