Description Usage Arguments Value Author(s) See Also Examples
This function takes an NBA season object and makes a shot chart of all the shots takes through that regular season. You can choose to either plot the results based on Points per Shot or on Shooting Percentage
1 | ShotSeasonGraph(Seasondata, quant = 0.4, type = "PPS")
|
Seasondata |
The information of shots, it can be downloaded with function read_season |
quant |
A number between 0 and 1, it determines quantile of shots used to plot the shot chart, (default is 0.4) |
type |
A character to specify if the shot chart is based on Points per Shot ("PPS") or percentage ("PCT") |
a ggplot object plotting the shot chart of a given NBA season
Derek Corcoran <derek.corcoran.barrios@gmail.com>
1 2 3 | data("season2017")
ShotSeasonGraph(season2017, quant = 0.4)
ShotSeasonGraph(season2017, quant = 0.4, type = "PCT")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.