nflplotR (development version)
- Import/export
nflverse_sitrep()
- Add new functions
gt_nfl_logos()
andgt_nfl_wordmarks()
to render logos and wordmarks ingt()
html tables. (#39) - Add new function
gt_nfl_headshots()
to render player headshots ingt()
html tables. (#41) - Add new function
gt_render_image()
to render gt tables to an image in package function examples or reproducible examples. (#42)
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()
andgeom_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
- Added the
geom_nfl_logos()
geom. - Added the
geom_mean_lines()
andgeom_median_lines()
geoms. (v0.0.0.9002) -
geom_nfl_logos()
now tries to clean the team abbreviations by callingnflreadr::clean_team_abbrs()
- Added the color and fill scales
scale_color_nfl()
andscale_fill_nfl()
. (v0.0.0.9003) - Added the axis scales
scale_x_nfl()
andscale_y_nfl()
in combination with the theme update functionstheme_x_nfl()
andtheme_y_nfl()
. (v0.0.0.9004) - Fixed an incompatible position argument in
scale_y_nfl()
. (v.0.0.9005) - Added the function
ggpreview()
which allows to preview a ggplot in it’s actual dimensions. (v.0.0.9006) -
geom_nfl_logos()
now supports acolour
aesthetic that colorizes the logos. (v0.0.9007) - Added the function
nfl_team_tiers()
that build an NFL team tiers ggplot, thanks to Timo Riske for the suggestion. (v.0.0.9008) - Fixed a bug (#10) in
geom_median_lines()
andgeom_mean_lines()
that causedalpha
to not work properly. (v.0.0.9009) - Improved
nfl_team_tiers()
by adding the opportunity to modifytitle
,subtitle
,caption
of the plot. Added functionality to remove tier separation lines for combined tiers. Added functionality to run the function in “developer” mode which means, that team abbreviations will be plotted instead of logos (much faster). (v.0.0.9010) - Added the
geom_nfl_headshots()
geom that plots headshots for valid gsis IDs. (v0.0.9011) - Added the axis scales
scale_x_nfl_headshots()
andscale_y_nfl_headshots()
. (v.0.0.9012) - Updated internal data to use the new team colors in nflfastR. (v.0.0.9013)
- Added the
geom_nfl_wordmarks()
geom that plots NFL wordmarks using valid team abbreviations. (v.0.0.9014) - Added the
geom_from_path()
geom that plots images from urls, local paths and more. (v.0.0.9015) - Added the ggplot2 theme-elements
element_nfl_logo()
,element_nfl_wordmark()
,element_nfl_headshot()
, andelement_path()
which translate NFL team abbreviations or player IDs into team logos and player headshots. These elements feature a major speed improvement over the axis scalesscale_x_nfl_headshots()
andscale_y_nfl_headshots()
and make the package less dependent on an underlying package. (v.0.0.0.9016)