Skip to contents

Shiny app for comparing player trajectories

Usage

compareTrajectories()

selectPlayers2(midYearRange, minIP)

compare_plot(playerid_1, playerid_2, measure, xvar)

Arguments

midYearRange

a numeric vector giving the range of possible years

minIP

minimum number of innings pitched (IP) to be considered in the group.

playerid_1

Lahman ID for the first player

playerid_2

Lahman ID for the second player

measure

Name of the measure of pitching performance to be compared. Must be one of: "ERA", "FIP", "WHIP", "SO Rate", "BB Rate"

xvar

Name of the variable for the x-axis. Must be either "age" or "year"

Value

A Shiny app

See also

Examples

if (FALSE) { # \dontrun{
  compareTrajectories()
} # }