Learn R Programming

SpatialBall (version 0.1.0)

PointShotSeasonGraphPlayer: Generates a point based shot chart for a given player

Description

Creates a shot chart for a player on a given season creating a point for each taken shot separating by colors mades and misses, also as you can add a kernel of the frequency of usage of areas

Usage

PointShotSeasonGraphPlayer(Seasondata, player, Type = "Both", kernel = TRUE)

Arguments

Seasondata

a data frame with the details of the season

player

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

Type

either "Both" (default), for plotting every point, "Made" to plot only the made shots or "Missed" to plot only the missed shots.

kernel

Logical, weather to plot or not the kernel of shots

Value

a shot chart graph

Examples

Run this code
# NOT RUN {
data("season2017")
#Examples with several players
PointShotSeasonGraphPlayer(season2017, player = "James Harden")
PointShotSeasonGraphPlayer(season2017, player = "DeMar DeRozan")

PointShotSeasonGraphPlayer(season2017, player = "Stephen Curry", kernel = FALSE)
# }

Run the code above in your browser using DataLab