Learn R Programming

nflplotR

The goal of nflplotR is to provide functions and geoms that help visualization of NFL related analysis. It provides a ggplot2 geom that does the heavy lifting of plotting NFL logos in high quality, with correct aspect ratio and possible transparency.

Installation

The easiest way to get nflplotR is to install it from CRAN with:

install.packages("nflplotR")

To get a bug fix or to use a feature from the development version, you can install the development version of nflplotR either from GitHub with:

if (!require("pak")) install.packages("pak")
pak::pak("nflverse/nflplotR")

or prebuilt from the development repo with:

install.packages("nflplotR", repos = c("https://nflverse.r-universe.dev", getOption("repos")))

Usage

Please see the Get Started with nflplotR and nflplotR & the gt Package articles.

Getting help

The best places to get help on this package are:

Contributing

Many hands make light work! Here are some ways you can contribute to this project:

Terms of Use

The R code for this package is released as open source under the MIT License. NFL data accessed by this package belong to their respective owners, and are governed by their terms of use.

Copy Link

Version

Install

install.packages('nflplotR')

Monthly Downloads

1,211

Version

1.6.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Sebastian Carl

Last Published

November 14th, 2025

Functions in nflplotR (1.6.0)

gt_nfl_logos

Render Logos and Wordmarks in 'gt' Tables
valid_team_names

Output Valid NFL Team Abbreviations
nflverse_sitrep

Get a Situation Report on System, nflverse Package Versions and Dependencies
gt_pct_bar

Format Columns of 'gt' Tables as Percentage Bars
nfl_team_tiers

Create NFL Team Tiers
reexports

Objects exported from other packages
scale_nfl

Scales for NFL Team Colors
gt_render_image

Render 'gt' Table to Temporary png File
GeomNFLheads

nflplotR: NFL Logo Plots in 'ggplot2' and 'gt'
nfl_team_factor

Create Ordered NFL Team Name Factor
geom_lines

ggplot2 Layer for Horizontal and Vertical Reference Lines
gt_nfl_cols_label

Render Logos, Wordmarks, and Headshots in 'gt' Table Column Labels
geom_from_path

ggplot2 Layer for Visualizing Images from URLs or Local Paths
.nflplotR_clear_cache

Clear nflplotR Cache
element

Theme Elements for Image Grobs
gt_nfl_headshots

Render Player Headshots in 'gt' Tables
ggpreview

Preview ggplot in Specified Dimensions
geom_nfl_wordmarks

ggplot2 Layer for Visualizing NFL Team Wordmarks
geom_nfl_logos

ggplot2 Layer for Visualizing NFL Team Logos
geom_nfl_headshots

ggplot2 Layer for Visualizing NFL Player Headshots