I'm working on making shot charts for basketball. I need to figure out how to actually draw the outline of a basketball court in the background. Any ideas?



I'm working on making shot charts for basketball. I need to figure out how to actually draw the outline of a basketball court in the background. Any ideas?




The following code was used to get this image:
ggplot(shots, aes(X,Y)) + stat_binhex(binwidth=c(3,3)) +
geom_point(size=3, alpha=0.5, aes(color=RESULT), position="jitter") +
coord_equal() + theme_grey() + opts(title="Golden State Warriors 2012 Shot Chart") +
geom_path(data=ft_line, aes(x,y), colour="white", size=2) +
geom_path(data=court, aes(x,y), colour="white", size=2)
The data in the geom_path commands contains the (x,y) coords for the white court diagram.