Skip to content

nflplotR 1.2.0

Compare
Choose a tag to compare
@mrcaseb mrcaseb released this 18 Sep 13:32

New Features

  • Add new functions gt_nfl_logos() and gt_nfl_wordmarks() to render logos and wordmarks in gt() html tables. (#39)
  • Add new function gt_nfl_headshots() to render player headshots in gt() html tables. (#41)
  • Add new function gt_render_image() to render gt tables to an image in package function examples or reproducible examples. (#42)
  • Add new function nflverse_sitrep() to compute a nflverse related situation report.

Breaking Changes

  • The functions geom_from_path(), element_path() as well as the ref line functions geom_mean_line() and geom_median_line() have been outsourced to the ggpath package. nflplotR re-exports them for compatibility reasons. However, the ref line functions needed modification in order to work properly with ggplot2 scale transformations. Those geoms now require the aesthetics x0 and y0 instead of v_var and h_var respectively. This means that nflplotR will break code (!) where ref line geoms are called with v_var and h_var aesthetics. This is a hard but necessary step to revise an irreparable mistake in the development of the original code. (#43)

Minor Changes

  • Update Eagles and Commanders wordmarks with latest versions from NFL. (#44)
  • Update Bears logo (it's now the Bear) and secondary color to meet their brand guidelines. (#46)

Thank you to @Adeiko, and @tanho63 for their questions, feedback, and contributions towards this release.