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

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.

Browse man pages Browse package API and functions Browse package files

AuthorCarson Sievert <cpsievert1@gmail.com>
Date of publication2015-12-09 12:57:25
MaintainerCarson Sievert <cpsievert1@gmail.com>
LicenseMIT + file LICENSE
Version1.8.2
URL http://cpsievert.github.com/pitchRx
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("pitchRx")

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)

Functions

animateFX Man page Source code
appendDate Source code
appendPitchCount Source code
collapse_obs2 Source code
dates2urls Source code
diffDensity Source code
export Man page Source code
fields Man page
fill.NAs Source code
fitModel Source code
format.table Source code
getFacets Source code
getSnapshots Man page Source code
getStrikezones Source code
gid2date Source code
gids Man page
gids2urls Source code
interactiveFX Man page Source code
makeUrls Man page Source code
merged Source code
nonMLBgids Man page
pitchRx Man page
pitchRx-package Man page
pitches Man page
players Man page
plotDensity Source code
scrape Man page Source code
scrapeFX Man page Source code
strikeFX Man page Source code
subsetFX Source code
subsetGids Source code
updateGids Source code
update_db Man page Source code
urlsToDataFrame Man page Source code

Files

inst
inst/CITATION
inst/tests
inst/tests/testthat.R
inst/tests/testthat
inst/tests/testthat/test-scrape.R
inst/scripts
inst/scripts/gids.R
inst/scripts/nonMLBgids.R
inst/scripts/nonMLBplayers.R
inst/shiny
inst/shiny/ui.R
inst/shiny/server.R
NAMESPACE
NEWS
data
data/fields.rda
data/gids.rda
data/players.rda
data/pitches.rda
data/nonMLBgids.rda
R
R/strikeFX.R
R/update.R
R/data.R
R/deprecated.R
R/help.R
R/animateFX.R
R/interactiveFX.R
R/scrape.R
R/getSnapshots.R
R/getStrikezones.R
R/getFacets.R
MD5
DESCRIPTION
man
man/strikeFX.Rd
man/makeUrls.Rd
man/pitches.Rd
man/nonMLBgids.Rd
man/getSnapshots.Rd
man/scrapeFX.Rd
man/animateFX.Rd
man/urlsToDataFrame.Rd
man/export.Rd
man/gids.Rd
man/fields.Rd
man/update_db.Rd
man/players.Rd
man/interactiveFX.Rd
man/pitchRx.Rd
man/scrape.Rd
LICENSE
pitchRx documentation built on May 19, 2017, 4:51 p.m.