-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCourt.R
19 lines (16 loc) · 817 Bytes
/
Court.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
library(ballr)
source("https://raw.githubusercontent.com/toddwschneider/ballr/master/plot_court.R")
source("https://raw.githubusercontent.com/toddwschneider/ballr/master/court_themes.R")
object <- plot_court()
court_points <- court_points %>%
mutate(desc = factor(desc),
x = x*10,
y = y*10)
test.three <- court_points %>% filter(desc == "three_point_line")
test.perimeter <- court_points %>% filter(desc == "perimeter")
test.outer_key <- court_points %>% filter(desc == "outer_key")
test.backboard <- court_points %>% filter(desc == "backboard")
test.neck <- court_points %>% filter(desc == "neck")
test.hoop <- court_points %>% filter(desc == "hoop")
test.foul_circle <- court_points %>% filter(desc == "foul_circle_top")
test.restricted <- court_points %>% filter(desc == "restricted")