This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Forked from Ed Küpfer and Asteves | |
#https://gist.github.com/edkupfer | |
#https://gist.github.com/asteves/7266330 | |
#Updated to rotate half court 90 degrees | |
#Generate Data for the 3 point line | |
# Define the circle; add a point at the center if the 'pie slice' if the shape is to be filled | |
circleFun <- function(center=c(0,5.25), diameter=20.9, npoints=20000, start=0, end=1, filled=TRUE){ | |
tt <- seq(start*pi, end*pi, length.out=npoints) |