Learn R Programming

nbastatR (version 0.1.10131)

plot_nba_team_season_bokeh_shotchart: Gets NBA team Bokeh Shot Chart

Description

Gets NBA team Bokeh Shot Chart

Usage

plot_nba_team_season_bokeh_shotchart(team = "Nets", year_roster = 2016,
  year_data = 2015, plot_hex = T, author = "Alex Bresler",
  use_shot_zone_side = T, season_type = "Regular Season",
  positions = c("G", "F", "C"), shots_type = c("Dunk", "Layup", "Jump Shot",
  "Fadeaway", "Bank", "Tip", "Hook"), shot_areas = c("Three Point", "Paint",
  "Mid-Range"), vs_conference = NA, vs_division = NA,
  quarter_range = 1:12, minute_range = 0:12, against_team = NA,
  game_location = NA, game_month = NA, outcome = NA,
  season_segment = NA, exclude_backcourt = T)

Arguments

team
can be = #c("76ers", "Bucks", "Bulls", "Cavaliers", "Celtics", "Clippers",
year_roster
- year of the roster
plot_hex
- T or F, shows
season_type
- Regular Season, Pre Season, Playoffs, All Star
positions
- G, FA, C
shots_type
- ('Dunk', 'Layup', 'Jump Shot', "Fadeaway", "Bank", "Tip",'Hook')
shot_areas
- c('Three Point', "Paint", "Mid-Range")
vs_conference
- NA or East, West,
vs_division
- Atlantic, Central, Northwest, Pacific, Southeast, Southwest
quarter_range
- 0:8
minute_range
- 0:12
against_team
- Same as team
game_location
- NA or Home, Road
outcome
- NA, W, L
season_segment
NA, Post All-Star, Pre All-Star
exclude_backcourt

Examples

Run this code
plot_nba_team_season_bokeh_shotchart(team = "Nets", plot_hex = F, quarter_range = c(3,4))

Run the code above in your browser using DataLab