Learn R Programming

SpatialBall (version 0.1.0)

OffShotSeasonGraphTeam: Generates an offensive shot chart for a given team

Description

creates an offensive Shot Chart for the desired team on a given season

Usage

OffShotSeasonGraphTeam(Seasondata, team, quant = 0.4, type = "PPS")

Arguments

Seasondata

a data frame with the details of the season

team

the name of the team that you want to make a graph of

quant

the quantile of shots to be graphed, defaults to 0.4

type

either "PPS" for points per shot or "PCT" for percentage

Value

a shot chart graph

Examples

Run this code
# NOT RUN {
data("season2017")
#Examples with several teams
OffShotSeasonGraphTeam(season2017, team = "GSW")
OffShotSeasonGraphTeam(season2017, team = "Hou")
#Examples with shooting percentage instead of Points per Shot
OffShotSeasonGraphTeam(season2017, team = "ORL", type = "PCT")
# }

Run the code above in your browser using DataLab