Package: BasketballAnalyzeR 0.7.0

Marco Sandri

BasketballAnalyzeR: Analysis and Visualization of Basketball Data

Contains data and code to accompany the book P. Zuccolotto and M. Manisera (2020) Basketball Data Science. Applications with R. CRC Press. ISBN 9781138600799.

Authors:Marco Sandri [aut, cre], Paola Zuccolotto [aut], Marica Manisera [aut]

BasketballAnalyzeR_0.7.0.tar.gz
BasketballAnalyzeR_0.7.0.zip(r-4.5)BasketballAnalyzeR_0.7.0.zip(r-4.4)BasketballAnalyzeR_0.7.0.zip(r-4.3)
BasketballAnalyzeR_0.7.0.tgz(r-4.4-any)BasketballAnalyzeR_0.7.0.tgz(r-4.3-any)
BasketballAnalyzeR_0.7.0.tar.gz(r-4.5-noble)BasketballAnalyzeR_0.7.0.tar.gz(r-4.4-noble)
BasketballAnalyzeR_0.7.0.tgz(r-4.4-emscripten)BasketballAnalyzeR_0.7.0.tgz(r-4.3-emscripten)
BasketballAnalyzeR.pdf |BasketballAnalyzeR.html
BasketballAnalyzeR/json (API)

# Install 'BasketballAnalyzeR' in R:
install.packages('BasketballAnalyzeR', repos = c('https://sndmrc.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/sndmrc/basketballanalyzer/issues

Datasets:
  • Obox - Opponents box scores dataset - NBA 2017-2018
  • PbP.BDB - Play-by-play dataset - NBA 2017-2018
  • Pbox - Players box scores dataset - NBA 2017-2018
  • Tadd - Tadd dataset - NBA 2017-2018
  • Tbox - Teams box scores dataset - NBA 2017-2018

On CRAN:

basketball-statsdata-analysisdata-science

4.80 score 35 stars 36 scripts 336 downloads 34 exports 76 dependencies

Last updated 1 years agofrom:9e8a01f0be. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 19 2024
R-4.5-winNOTENov 19 2024
R-4.5-linuxNOTENov 19 2024
R-4.4-winOKNov 19 2024
R-4.4-macOKNov 19 2024
R-4.3-winOKNov 19 2024
R-4.3-macOKNov 19 2024

Exports:assistnetbarlinebubbleplotcorranalysisdensityplotdrawNBAcourtexpectedptsfourfactorshclusteringinequalityis.assistnetis.corranalysisis.fourfactorsis.hclusteringis.inequalityis.kclusteringis.MDSmapis.shotperformanceis.simpleregis.variabilitykclusteringMDSmapPbPmanipulationradialprofilescatterplotscoredifferencescoringprobscoringprobabilityshotchartshotclockshotperformancesimpleregTOPboxesvariability

Dependencies:bitbit64clicliprcodacolorspacecorrplotcpp11crayondata.tabledendextenddigestdirectlabelsdplyrfansifarverforcatsfsgenericsGGallyggnetworkggplot2ggplotifyggrepelggstatsgluegridExtragridGraphicsgtablegtoolshmsigraphisobandlabelinglatticelifecyclemagrittrMASSmathjaxrMatrixmgcvmunsellnetworknlmeoperatorspatchworkPBSmappingpillarpkgconfigplyrprettyunitsprogresspurrrquadprogR6RColorBrewerRcppreadrrlangscalessnaspstatnet.commonstringistringrtibbletidyrtidyselecttzdbutf8vctrsviridisviridisLitevroomwithryulab.utils

Readme and manuals

Help Manual

Help pageTopics
Investigates the network of assists-shots in a teamassistnet
Draws a bar-line plotbarline
Draws a bubble plotbubbleplot
Correlation analysiscorranalysis
R function CreateRadialPlot by William D. Vickers, freely downloadable from the webCreateRadialPlot
Computes and plots kernel density estimation of shots with respect to a concurrent variabledensityplot
Add lines of NBA court to an existing ggplot2 plotdrawNBAcourt
Plots expected points of shots as a function of the distance from the basket (default) or another variableexpectedpts
Calculates possessions, pace, offensive and defensive rating, and Four Factorsfourfactors
Agglomerative hierarchical clusteringhclustering
Inequality analysisinequality
Reports whether x is a 'networkdata' objectis.assistnet
Reports whether x is a 'corranalysis' objectis.corranalysis
Reports whether x is a 'fourfactors' objectis.fourfactors
Reports whether x is a 'hclustering' objectis.hclustering
Reports whether x is a 'inequality' object.is.inequality
Reports whether x is a 'kclustering' objectis.kclustering
Reports whether x is a 'MDSmap' objectis.MDSmap
Reports whether x is a 'shotperformance' objectis.shotperformance
Reports whether x is a 'simplereg' objectis.simplereg
Reports whether x is a 'variability' objectis.variability
K-means cluster analysiskclustering
Multidimensional scaling (MDS) in 2 dimensionsMDSmap
Opponents box scores dataset - NBA 2017-2018Obox
Players box scores dataset - NBA 2017-2018Pbox
Play-by-play dataset - NBA 2017-2018PbP.BDB
Adapts the standard file supplied by BigDataBall to the format required by BasketballAnalyzeRPbPmanipulation
Plots a network from a 'assistnet' objectplot.assistnet
Plots the correlation matrix and the correlation network from a 'corranalysis' objectplot.corranalysis
Plot possessions, pace, offensive and defensive rating, and Four Factors from a 'fourfactors' objectplot.fourfactors
Plots hierarchical clustering from a 'hclustering' objectplot.hclustering
Plot Lorenz curve from a 'inequality' objectplot.inequality
Plot k-means clustering from a 'kclustering' objectplot.kclustering
Draws two-dimensional plots for multidimensional scaling (MDS) from a 'MDSmap' objectplot.MDSmap
Plots a bubbleplot representing the data contained in the dataframe produced by the function 'shotperformance'plot.shotperformance
Plot simple regression from a 'simplereg' objectplot.simplereg
Plots a variability diagram from a 'variability' objectplot.variability
Draws radial plots for player profilesradialprofile
Draws a scatter plot or a matrix of scatter plotsscatterplot
Computes the score difference between the two teams in the matchscoredifference
Plots scoring probability of shots as a function of a given variablescoringprob
Computes the probability of scoring certain shot types in certain conditions, by looking at the result of the shots in the PbP providedscoringprobability
Plots different kinds of charts based on shot coordinatesshotchart
Computes, for each action, an estimate of the value of the shotclock when the action has endedshotclock
Computes, for each player of a specific team, its performance measureshotperformance
Simple linear and nonparametric regressionsimplereg
Tadd dataset - NBA 2017-2018Tadd
Teams box scores dataset - NBA 2017-2018Tbox
Calculate Tbox, Obox and PboxTOPboxes
Variability analysisvariability