Sport-Specific Packages American Football ? TouRnament consists of two functions: 1) Creating league tables based on results and 2) Creating a match schedule for a league.SportsTour provides functions for displaying tournament fixtures using knock-out and round robin methods.This is particularly useful for plotting player tracking data. sportyR contains functions for creating ggplot2 representations of sports playing surfaces pursuant to rule-book specifications.nbapalettes contains color palettes inspired by NBA team jersey colors.
#MLB STATISTICAL TOOLS FOR DATA ANALYSIS PROFESSIONAL#
colorr contains color palettes for professional sports teams in the EPL, MLB, NBA, NHL, and NFL.teamcolors was originally designed to create the data graphics in Lopez, et al. (2018) ( doi:10.1214/18-AOAS1165). teamcolors provides color palettes, ggplot2 themes, xaringan themes, and logos for professional teams across a variety of sports and leagues.Contributions are always welcome, and encouraged – please see the linked GitHub repository for details. If there is a sports analytics package on CRAN that we have missed, please let us know. The list of packages is aspirationally comprehensive. performing common computations on sport-specific dataĮsports and sports betting packages are within scope.acquiring data for a specific sport or league.Most packages provide functionality for some combination of: To be considered for inclusion, the package must be useful for conducting sports analytics. Our goal in compiling this list is to help researchers find the tools they need to complete their work in R. Throughout the task view, and collected in the Related links section at the end, we have included a list of selected books and articles that use some of these packages in substantive ways. However, we also include a General section for packages that provide ancillary functionality relevant to sports analytics (e.g., team-themed color palettes), and a Modeling section for packages useful for statistical modeling. Most of the packages are sport-specific and are grouped as such. This CRAN Task View contains a list of packages useful for sports analytics. See the CRAN Task View Initiative for more details. For example, ctv::install.views("SportsAnalytics", coreOnly = TRUE) installs all the core packages or ctv::update.views("SportsAnalytics") installs all packages that are not yet installed and up-to-date. The packages from this task view can be installed automatically using the ctv package. For further details see the Contributing guide.īenjamin S. Suggestions and improvements for this task view are very welcome and can be made through issues or pull requests on GitHub or via e-mail to the maintainer address. CRAN Task View: Sports Analytics CRAN Task View: Sports Analytics Maintainer:īenjamin S.