Description Usage Arguments Value Examples
Plot shot charts
1 |
df |
data frame with at least two coordinate columns named x and y |
... |
arguments specified to geom_point(aes(x, y, ...)) |
A ggplot object
1 2 3 4 5 | library(ggplot2)
ids <- 2010208:2010216
week17_2018 <- extract_shots(ids)
plot_shotchart(week17_2018)
plot_shotchart(week17_2018, color = made) + facet_wrap(~game_id)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.