compare_contour: Compare Rate or Mean Distributions

View source: R/compare_contour.R

compare_contourR Documentation

Compare Rate or Mean Distributions

Description

Constructs filled contour graphs of one more Statcast datasets

Usage

  compare_contour(df, L = 0.5, type = "ms", Ncol = 2, etitle = "")

Arguments

df

list of data frames containing Statcast datasets

L

vector of contour levels

type

abbreviation for variable to be graphed

Ncol

number of columns in faceted display

etitle

additional text to add to title of graph

Value

Constructs 2 x 2 grid of filled contour plots of the variable (choices for type are called strike ("cs"), swing ("sw"), make contact on swing ("mc"), miss swing ("ms"), hit ("h"), home run ("hr"), launch angle ("la"), launch speed ("ls"), and spray angle ("sa"))

Author(s)

Jim Albert


bayesball/CalledStrike documentation built on April 29, 2024, 6:21 p.m.