Learn R Programming

BasketballAnalyzeR

R package accompanying the forthcoming book

Paola Zuccolotto and Marica Manisera (2020). Basketball Data Science. Applications with R. CRC Press.

Developer: Marco Sandri

Copy Link

Version

Install

install.packages('BasketballAnalyzeR')

Monthly Downloads

333

Version

0.5.0

License

GPL (>= 2.0)

Issues

Pull Requests

Stars

Forks

Maintainer

Marco Sandri

Last Published

June 26th, 2020

Functions in BasketballAnalyzeR (0.5.0)

CreateRadialPlot

R function CreateRadialPlot by William D. Vickers, freely downloadable from the web
barline

Draws a bar-line plot
PbPmanipulation

Adapts the standard file supplied by BigDataBall to the format required by BasketballAnalyzeR
Tbox

Teams box scores dataset - NBA 2017-2018
PbP.BDB

Play-by-play dataset - NBA 2017-2018
is.MDSmap

Reports whether x is a 'MDSmap' object
bubbleplot

Draws a bubble plot
Pbox

Players box scores dataset - NBA 2017-2018
corranalysis

Correlation analysis
hclustering

Agglomerative hierarchical clustering
densityplot

Computes and plots kernel density estimation of shots with respect to a concurrent variable
plot.MDSmap

Draws two-dimensional plots for multidimensional scaling (MDS) from a 'MDSmap' object
inequality

Inequality analysis
is.kclustering

Reports whether x is a 'kclustering' object
is.simplereg

Reports whether x is a 'simplereg' object
expectedpts

Plots expected points of shots as a function of the distance from the basket (default) or another variable
plot.assistnet

Plots a network from a 'assistnet' object
fourfactors

Calculates possessions, pace, offensive and defensive rating, and Four Factors
is.hclustering

Reports whether x is a 'hclustering' object
is.inequality

Reports whether x is a 'inequality' object.
plot.variability

Plots a variability diagram from a 'variability' object
drawNBAcourt

Add lines of NBA court to an existing ggplot2 plot
scatterplot

Draws a scatter plot or a matrix of scatter plots
variability

Variability analysis
scoringprob

Plots scoring probability of shots as a function of a given variable
plot.fourfactors

Plot possessions, pace, offensive and defensive rating, and Four Factors from a 'fourfactors' object
plot.corranalysis

Plots the correlation matrix and the correlation network from a 'corranalysis' object
radialprofile

Draws radial plots for player profiles
is.variability

Reports whether x is a 'variability' object
shotchart

Plots different kinds of charts based on shot coordinates
simplereg

Simple linear and nonparametric regression
is.assistnet

Reports whether x is a 'networkdata' object
kclustering

K-means cluster analysis
is.fourfactors

Reports whether x is a 'fourfactors' object
is.corranalysis

Reports whether x is a 'corranalysis' object
plot.simplereg

Plot simple regression from a 'simplereg' object
plot.kclustering

Plot k-means clustering from a 'kclustering' object
plot.hclustering

Plots hierarchical clustering from a 'hclustering' object
plot.inequality

Plot Lorenz curve from a 'inequality' object
MDSmap

Multidimensional scaling (MDS) in 2 dimensions
assistnet

Investigates the network of assists-shots in a team
Tadd

Tadd dataset - NBA 2017-2018
Obox

Opponents box scores dataset - NBA 2017-2018