Description Usage Arguments Value Examples
View source: R/oneseason_pitcher_compare.R
This function draws a plot that compares two pitchers based on one season batter data. This function has an option for yearly and monthly. default: Based on the 2018 season, the month argument is NULL If you put specific year in the yearly parameter, this function draws a pitching comparing plot of the corresponding year . If you put specific month in the monthly parameter, this function draws a pitching comparison plot for the matched 2018 year and specific month. If you put specific year and month in two parameters, this function draws a pitching comparison plot 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"))'
1 2 3 | oneseason_pitcher_compare(data = kbodatamining::hanhwa_pitcher_2018,
playername1, playername2, id1 = NULL, id2 = NULL, yearly = 2018,
monthly = NULL)
|
data |
Default data is hanhwa_pitcher_2018 You can put other KBO pitcher data if you want. |
playername1 |
Name of the batter you want to compare with playername1 |
playername2 |
NName of the batter you want to compare with playername2 |
id1 |
Defalut value is NULL. The first of the player id you want to compare |
id2 |
Defalut value is NULL. The second of the player id you want to compare |
yearly |
The default value is NULL Possible values are a specific year. |
monthly |
The default value is NULL Possible values are a specific month. |
Plots comparing two pitcher stats
1 2 3 4 | ## default: yearly=2018, monthly=NULL
oneseason_pitcher_compare(hanhwa_pitcher_2018,"<ec><a0><95><ec><9a><b0><eb><9e><8c>","<ec><86><a1><ec><9d><80><eb><b2><94>",yearly=2018)
## yearly=2018, monthly="05"
oneseason_pitcher_compare(hanhwa_pitcher_2018,"<ec><a0><95><ec><9a><b0><eb><9e><8c>","<ec><86><a1><ec><9d><80><eb><b2><94>",yearly=2018,monthly="05")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.