Skip to content

Releases: camdenk/mlbplotR

mlbplotR 1.1.0

20 Jun 23:42
Compare
Choose a tag to compare
  • Corrected Arizona's team abbreviation in mlb_team_factor() (v1.0.1.9001)
  • Updated Twins logo, updated Brewers Scoreboard Logo, added more names to be cleaned (ANA to LAA and LA to LAD), added new dot logos and corresponding functions (geom_mlb_dot_logos(), gt_fmt_mlb_dot_logo(), and element_mlb_dot_logo()) (v1.0.1.9002)
  • Updated valid_team_names() to allow for truncated outputs without league level abbreviations (v1.0.1.9003)

mlbplotR 1.0.1

14 Mar 04:21
Compare
Choose a tag to compare
  • Added the geom_mlb_logos() geom.
  • Added the color and fill scales scale_color_mlb() and scale_fill_mlb() along with the axis scales scale_x_mlb() and scale_y_mlb() in combination with the theme update functions theme_x_mlb() and theme_y_mlb(). Also added the ggplot2 theme-element element_mlb_logo() which translates MLB team abbreviations into team logos (v0.0.0.9002)
  • Added the geom_mlb_headshots() geom that plots headshots for valid MLB IDs. Along with the function ggpreview() which allows to preview a ggplot in it's actual dimensions. (v0.0.0.9003)
  • Added the ggplot2 theme-element element_mlb_headshot() and which translates player IDs into player headshots. (v0.0.0.9004)
  • Added the function ggpreview() which allows to preview a ggplot in it's actual dimensions. (v0.0.0.9005)
  • Added the geom_from_path() geom that plots images from urls, local paths, and more. Also added element_path() which translates supplied links into images for axes labeling (v0.0.0.9006)
  • Added the geom_mlb_scoreboard_logos(), geom_mlb_dark_cap_logos(), geom_mlb_light_cap_logos() geoms which translate MLB team abbreviations into team logos. Also added corresponding element functions (element_mlb_scoreboard_logo(), element_mlb_dark_cap_logo(), element_mlb_light_cap_logo()) which translates supplied abbreviations into images for theming. Also updated function parameter names. (v0.0.0.9007)
  • Added the load_headshots() function to the exported functions. (v0.0.0.9008)
  • Added the clean_team_abbrs() function and implemented it with proper geoms. (v0.0.0.9009)
  • Added the gt_fmt_mlb_logo(), gt_fmt_mlb_scoreboard_logo(), gt_fmt_mlb_headshot() and gt_merge_stack_team_color() functions to aid in making gt tables. (v0.0.0.9010)
  • Updated internal data to use "AZ" as Diamondbacks new team abbreviation. (v0.0.0.9011)
  • Removed glue dependency, updated "Getting Started" vignette, and set scale_x_mlb(), scale_y_mlb(), theme_x_mlb(), and theme_y_mlb() as superseded (v0.0.0.9012)
  • Updated gt helper functions to prepare for an eventual CRAN submission (v0.0.0.9013)
  • Updated na_headshot(), gt_fmt_mlb_headshot(), and geom_mlb_headshots() to allow for use of a general gray headshot instead of just returning the MLB logo (v0.0.0.9014)
  • Added gt_mlb_column_labels() to easily replace column labels with images (v0.0.0.9015)
  • Reworked gt_mlb_column_labels() to more cleanly accept customization (v0.0.0.9016)
  • Added mlb_team_tiers() and mlb_player_tiers() (v0.0.0.9017)
  • Added mlb_team_factor() (v0.0.0.9018)
  • Added geom_mean_lines() and geom_median_lines() (v0.0.0.9019)
  • Added ability to use nudge_x and nudge_y to the geom family of functions and cleaned up documentation to prepare for CRAN release (v0.0.0.9020)