compare_batter_statistic_teams: Comparing batting stats of two teams during one season

Description Usage Arguments Details Value Examples

View source: R/oneseason_team_batterstats_compare.R

Description

A plotting function that compares batter statistic of two teams during one season

Usage

1
2
compare_batter_statistic_teams(data, team1, team2, yearly = 2018,
  monthly = NULL)

Arguments

data

Your data must include at least one season of KBO data.

team1

The first of the team you want to compare

team2

The second of the team you want to compare

yearly

The default value is 2018. Possible values are specific year.

monthly

The default value is NULL. Possible values are specific month.

Details

This function has options called 'yearly' or 'monthly'. default: the yearly parameter is 2018, the monthly parameter is NULL. If you put a year in the yearly parameter, you draw a hit comparison plot of the two teams for that year. If you put a month in the monthly parameter, you draw a hit comparison plot of the two teams for the matched 2018 year and specific month. If you put a year and a month in each parameters, you draw a hit comparison plot of the two teams for the matched specific year and month. If you are using MAC and Hangeul fonts are broken, type 'theme_set(theme_gray(base_family = "AppleGothic"))'

Value

Plot to compare batting records of two teams

Examples

1
2
3
4
5
## Note: This example shows only the operation. This example does not include all game of team2.
## default: yearly=2018, monthly=NULL
compare_batter_statistic_teams(hanhwa_batter_2018,"<ed><95><9c><ed><99><94>","LG",yearly=2018,monthly=NULL)
## yearly=2018, monthly="05"
compare_batter_statistic_teams(hanhwa_batter_2018,"<ed><95><9c><ed><99><94>","LG",yearly=2018,monthly="05")

choosunsick/kbodatamining documentation built on May 18, 2019, 1:30 p.m.