Skip to content

Instantly share code, notes, and snippets.

Rajiv Shah rajshah4

Block or report user

Report or block rajshah4

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rajshah4 /
Last active Jan 10, 2016
This code, forked from Ed Küpfer, creates a shot chart. Building from the work of Asteves, this code rotates the court 90 degrees.
#Forked from Ed Küpfer and Asteves
#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)
You can’t perform that action at this time.