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

Description Usage Arguments Value Author(s) Examples

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

1
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

Author(s)

Derek Corcoran <derek.corcoran.barrios@gmail.com>

Examples

1
2
3
4
5
6
data("season2017")
#Examples with several players
PointShotSeasonGraphPlayer(season2017, player = "James Harden")
PointShotSeasonGraphPlayer(season2017, player = "DeMar DeRozan")

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

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