Skip to contents

nflplotR 1.3.1

CRAN release: 2024-03-25

  • Adjusted internals by CRAN request. No visible changes for the user. (#60)

nflplotR 1.3.0

CRAN release: 2024-02-23

New Features

  • Added the new function gt_nfl_cols_label() that renders logos and wordmarks in column labels of {gt} tables. (#52)

Bug Fixes & Minor Improvements


  • Deprecated the functions scale_x_nfl, scale_y_nfl, scale_x_nfl_headshots, scale_y_nfl_headshots, theme_x_nfl, theme_y_nfl. These function are slow and require a possibly unstable dependency. Please use the far superior element_nfl_logo() and friends instead. (#50)

nflplotR 1.2.0

CRAN release: 2023-09-18

New Features

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.

nflplotR 1.1.0

CRAN release: 2022-08-11

  • nflplotR will internally cache images used in all geoms and elements. The cache behavior can be controlled by setting options("nflplotR.cache") to one of "memory", "filesystem", or "off". It is possible to clear the cache with the new function .nflplotR_clear_cache(). This functionality added the dependencies cachem, memoise and rappdirs.
  • Resolved an issue where geom_mean_lines() and geom_median_lines() didn’t draw lines when a scale transformation, e.g. scale_*_reverse(), was applied.
  • Added new function nfl_team_factor() which creates ordered factors of NFL team names for facetted plots.

nflplotR 1.0.1

CRAN release: 2022-04-06

  • Updated the internal logo and wordmark files with the new Washington Commanders design.
  • Fixed some issues with theme-elements and updated examples.

nflplotR 1.0.0

CRAN release: 2022-01-21