Description Usage Arguments Details Value Examples
View source: R/oneseason_team_pitcherstats_compare.R
A plotting function that compares pitcher statistic of two teams during one season
1 2 | compare_pitcher_statistic_teams(data, team1, team2, yearly = 2018,
monthly = NULL)
|
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. |
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"))'
Plot to compare pitching records of two teams
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_pitcher_statistic_teams(hanhwa_batter_2018,"<ed><95><9c><ed><99><94>","LG",yearly=2018,monthly=NULL)
## yearly=2018, monthly="05"
compare_pitcher_statistic_teams(hanhwa_batter_2018,"<ed><95><9c><ed><99><94>","LG",yearly=2018,monthly="05")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.