pitchRx: Tools for Harnessing 'MLBAM' 'Gameday' Data and Visualizing 'pitchfx'

With 'pitchRx', one can easily obtain Major League Baseball Advanced Media's 'Gameday' data (as well as store it in a remote database). The 'Gameday' website hosts a wealth of data in XML format, but perhaps most interesting is 'pitchfx'. Among other things, 'pitchfx' data can be used to recreate a baseball's flight path from a pitcher's hand to home plate. With pitchRx, one can easily create animations and interactive 3D 'scatterplots' of the baseball's flight path. 'pitchfx' data is also commonly used to generate a static plot of baseball locations at the moment they cross home plate. These plots, sometimes called strike-zone plots, can also refer to a plot of event probabilities over the same region. 'pitchRx' provides an easy and robust way to generate strike-zone plots using the 'ggplot2' package.

Author
Carson Sievert <cpsievert1@gmail.com>
Date of publication
2015-12-09 12:57:25
Maintainer
Carson Sievert <cpsievert1@gmail.com>
License
MIT + file LICENSE
Version
1.8.2
URLs

View on CRAN

Man pages

animateFX
Animate PITCHf/x
export
Export (append) a data.frame to a remote table in a database.
fields
Master list of tables and fields returned by 'scrape'
getSnapshots
Produce time sequenced pitch locations from PITCHf/x...
gids
All MLB Gameday IDs from 2008-2013
interactiveFX
Use rgl to visualize PITCHf/x
makeUrls
Construct Gameday urls based on some parameters.
nonMLBgids
All non-MLB Gameday IDs from 2008-2013
pitches
Sample PITCHf/x Data Set
pitchRx
PITCHf/x package
players
All MLB and MiLB players from 2008 to date
scrape
Scrape Major League Baseball's Gameday Data
scrapeFX
Scrape Major League Baseball's PITCHf/x Data
strikeFX
Visualize PITCHf/x strikezones
update_db
Update an existing PITCHf/x database
urlsToDataFrame
Parse XML files into data frame(s)

Files in this package

pitchRx
pitchRx/inst
pitchRx/inst/CITATION
pitchRx/inst/tests
pitchRx/inst/tests/testthat.R
pitchRx/inst/tests/testthat
pitchRx/inst/tests/testthat/test-scrape.R
pitchRx/inst/scripts
pitchRx/inst/scripts/gids.R
pitchRx/inst/scripts/nonMLBgids.R
pitchRx/inst/scripts/nonMLBplayers.R
pitchRx/inst/shiny
pitchRx/inst/shiny/ui.R
pitchRx/inst/shiny/server.R
pitchRx/NAMESPACE
pitchRx/NEWS
pitchRx/data
pitchRx/data/fields.rda
pitchRx/data/gids.rda
pitchRx/data/players.rda
pitchRx/data/pitches.rda
pitchRx/data/nonMLBgids.rda
pitchRx/R
pitchRx/R/strikeFX.R
pitchRx/R/update.R
pitchRx/R/data.R
pitchRx/R/deprecated.R
pitchRx/R/help.R
pitchRx/R/animateFX.R
pitchRx/R/interactiveFX.R
pitchRx/R/scrape.R
pitchRx/R/getSnapshots.R
pitchRx/R/getStrikezones.R
pitchRx/R/getFacets.R
pitchRx/MD5
pitchRx/DESCRIPTION
pitchRx/man
pitchRx/man/strikeFX.Rd
pitchRx/man/makeUrls.Rd
pitchRx/man/pitches.Rd
pitchRx/man/nonMLBgids.Rd
pitchRx/man/getSnapshots.Rd
pitchRx/man/scrapeFX.Rd
pitchRx/man/animateFX.Rd
pitchRx/man/urlsToDataFrame.Rd
pitchRx/man/export.Rd
pitchRx/man/gids.Rd
pitchRx/man/fields.Rd
pitchRx/man/update_db.Rd
pitchRx/man/players.Rd
pitchRx/man/interactiveFX.Rd
pitchRx/man/pitchRx.Rd
pitchRx/man/scrape.Rd
pitchRx/LICENSE