Nice work. I expect the OP will be hearing from NBA teams at some point. There was a guy who made something very similar a couple of years ago (not in R, but same functionality) and he now works for an NBA team (a friend of mine works on the same analytics team). Of course, he had to bring his side-project with him and take it offline.