Description Usage Arguments Value Author(s) Examples
Add lines of NBA court to an existing ggplot2 plot
1 | drawNBAcourt(p, size = 1.5, col = "black", full = FALSE)
|
p |
a ggplot2 object. |
size |
numeric, line size. |
col |
line color. |
full |
logical; if TRUE draws a complete NBA court; if FALSE draws a half court. |
A ggplot2 object
Marco Sandri, Paola Zuccolotto, Marica Manisera (basketballanalyzer.help@unibs.it)
1 2 3 | library(ggplot2)
p <- ggplot(data.frame(x=0, y=0), aes(x,y)) + coord_fixed()
drawNBAcourt(p)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.