plot_shotchart: Plot shot charts

Description Usage Arguments Value Examples

Description

Plot shot charts

Usage

1

Arguments

df

data frame with at least two coordinate columns named x and y

...

arguments specified to geom_point(aes(x, y, ...))

Value

A ggplot object

Examples

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)

solmos/rfeb documentation built on May 30, 2019, 1:33 p.m.