inst/doc/Starting.R

## ----setup, include = FALSE----------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ---- eval=FALSE---------------------------------------------------------
#  install.packages("SpatialBall")
#  library(SpatialBall)

## ---- echo=FALSE---------------------------------------------------------
library(SpatialBall)

## ---- fig.height= 5, fig.width=6, fig.cap="Figure 1. Shot chart of Stephen Curry"----
data("season2017")
ShotSeasonGraphPlayer(season2017, player = "Stephen Curry")

## ---- fig.height= 5, fig.width=6, fig.cap="Figure 2. Shot chart of Stephen Curry showing the percentage of shots made"----
ShotSeasonGraphPlayer(season2017, player = "Stephen Curry", type = "PCT")

## ---- fig.height= 5, fig.width=6, fig.cap="Figure 3. Shot chart of Kyle Singler"----
ShotSeasonGraphPlayer(season2017, player = "Kyle Singler")

## ---- fig.height= 5, fig.width=6, fig.cap="Figure 4. Shot chart of Kyle Singler, point and kernel"----
PointShotSeasonGraphPlayer(season2017, player = "Kyle Singler")

## ---- fig.height= 5, fig.width=6, fig.cap="Figure 5. Shot chart of Kyle Singler, point and kernel, only made shots"----
PointShotSeasonGraphPlayer(season2017, player = "Kyle Singler", Type = "Made")

## ---- fig.height= 6, fig.width=6, fig.cap="Figure 6. Shot chart of Kyle Singler, points only, only made shots"----
PointShotSeasonGraphPlayer(season2017, player = "Kyle Singler", Type = "Made", kernel = FALSE)

## ---- fig.height= 5, fig.width=6, fig.cap="Figure 7. Offensive Shot chart of the Golden State Warriors"----
data("season2017")
OffShotSeasonGraphTeam(season2017, team = "GSW")

## ---- fig.height= 5, fig.width=6, fig.cap="Figure 7. Offensive Shot chart of the Golden State Warriors, percentage of shots made"----
data("season2017")
OffShotSeasonGraphTeam(season2017, team = "GSW", type = "PCT")

## ---- fig.height= 5, fig.width=6, fig.cap="Figure 8. Offensive Shot chart of the Golden State Warriors, percentage of shots made"----
data("season2017")
DefShotSeasonGraphTeam(season2017, team = "Sas", type = "PCT")

## ---- fig.height= 5, fig.width=6, fig.cap="Figure 12. Shot chart of the Whole 2017 Season"----
data("season2017")
ShotSeasonGraph(season2017, quant = 0.4)

Try the SpatialBall package in your browser

Any scripts or data that you put into this service are public.

SpatialBall documentation built on May 2, 2019, 7:24 a.m.