shots2hexbins: Hexbins from Shots

shots2hexbinsR Documentation

Hexbins from Shots

Description

Get the Hexbins stats from shots and league_averages objects of a NBA shotchart API

Usage

shots2hexbins(
  shots,
  league_averages,
  binwidths = c(1.5, 1.5),
  min_radius_factor = 0.25,
  fg_diff_limits = c(-0.15, 0.15),
  fg_pct_limits = c(0.2, 0.7),
  pps_limits = c(0.5, 1.5)
)

Value

a data.frame


damarals/danlib documentation built on May 12, 2022, 5:49 p.m.