Description Usage Value Examples
Get shot chart data for a player using the NBA API. See
make_url
for details on the parameter arguments.
1 2 3 4 5 6 | get_shotchart(SeasonType = "", LeagueID = "", Season = "",
PlayerID = "", TeamID = "", GameID = "", ContextMeasure = "",
PlayerPosition = "", DateFrom = "", DateTo = "", GameSegment = "",
LastNGames = "", Location = "", Month = "", OpponentTeamID = "",
Outcome = "", SeasonSegment = "", VSConference = "", VSDivision = "",
RookieYear = "", Period = "", StartPeriod = "", EndPeriod = "")
|
A data.frame containing shot chart data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Pull shot chart data for all players in the Cleveland Cavaliers
sc_data <- get_shotchart(
SeasonType = "Regular+Season",
LeagueID = "00",
Season = "2016-17",
PlayerID = "0",
TeamID = "1610612739",
GameID = "",
ContextMeasure = "FGA",
PlayerPosition = "",
DateFrom = "",
DateTo = "",
GameSegment = "",
LastNGames = "0",
Location = "",
Month = "0",
OpponentTeamID = "0",
Outcome = "",
SeasonSegment = "",
VSConference = "",
VSDivision = "",
RookieYear = "",
Period = "0",
StartPeriod = "",
EndPeriod = "")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.