powered by
Add lines of NBA court to an existing ggplot2 plot
drawNBAcourt(p, size = 1.5, col = "black", full = FALSE)
a ggplot2 object.
numeric, line size.
line color.
logical; if TRUE draws a complete NBA court; if FALSE draws a half court.
A ggplot2 object
# NOT RUN { library(ggplot2) p <- ggplot(data.frame(x=0, y=0), aes(x,y)) + coord_fixed() drawNBAcourt(p) # }
Run the code above in your browser using DataLab