
Package index
Logos, Wordmarks & Headshots
ggplot2 geoms and ggproto objects for rendering team logos, wordmarks and player headshots on plots. Every geom takes a sport argument.
-
geom_sdv_logos()GeomSDVlogo - ggplot2 Layer for Visualizing Sports Team Logos
-
geom_sdv_wordmarks()GeomSDVwordmark - ggplot2 Layer for Visualizing Sports Team Wordmarks
-
geom_sdv_headshots()GeomSDVheadshot - ggplot2 Layer for Visualizing Player Headshots
Theme Elements
Image-based ggplot2 theme elements for axis text — replace tick labels with team logos, wordmarks or player headshots.
-
element_sdv_logo()element_sdv_wordmark()element_sdv_headshot()element_sdv_raster() - Theme Elements for Image Grobs
Scales & Axes
Team color / fill scales, logo and headshot axis scales, and the matching theme helpers.
-
scale_color_sdv()scale_colour_sdv()scale_fill_sdv() - Scales for Sports Team Colors
-
scale_x_sdv()scale_y_sdv()scale_x_sdv_headshots()scale_y_sdv_headshots() - Axis Scales for Sports Team Logos
-
theme_x_sdv()theme_y_sdv() - Theme Helpers for SDV Axis Labels
gt Table Helpers
Embed team logos, wordmarks and player headshots inside gt table cells or column labels, and stack team-colored text.
-
gt_sdv_logos() - Render Logos in 'gt' Tables
-
gt_sdv_wordmarks() - Render Wordmarks in 'gt' Tables
-
gt_sdv_headshots() - Render Player Headshots in 'gt' Tables
-
gt_sdv_cols_label() - Render Logos in 'gt' Table Column Labels
-
gt_merge_stack_team_color() - Merge and Stack Text in gt Tables with Team Colors
SportsDataverse Table Themes
The SportsDataverse house table, in light and dark, and a version dressed in any team’s colors.
-
gt_theme_sdv() - SportsDataverse theme for
gttables -
gt_theme_sdv_team() - Team-colored SportsDataverse theme for
gttables
gt Table Themes
Editorial and broadcast-style themes for gt tables, ported from gtUtils. theme_bg holds each theme’s background color for matching a saved image’s canvas.
-
gt_theme_almanac() - Record-book theme for
gttables -
gt_theme_athletic() - The Athletic theme for
gttables -
gt_theme_booktabs() - Academic booktabs theme for
gttables -
gt_theme_broadsheet() - Editorial serif theme for
gttables -
gt_theme_brutalist() - Heavy-rule display theme for
gttables -
gt_theme_drench() - Saturated single-color theme for
gttables -
gt_theme_gtutils() - gtUtils theme for
gttables -
gt_theme_kenpom() - KenPom theme for
gttables -
gt_theme_midnight() - Dark theme for
gttables -
gt_theme_ncaa() - NCAA theme for
gttables -
gt_theme_pl() - Premier League theme for
gttables -
gt_theme_savant() - Baseball Savant theme for
gttables -
gt_theme_scoreboard() - Broadcast-graphics theme for
gttables -
gt_theme_sofa() - SofaScore theme for
gttables -
gt_theme_swiss() - International Typographic Style theme for
gttables -
gt_theme_terminal() - Data-terminal theme for
gttables -
gt_theme_tier() - Tier list theme for
gttables -
gt_theme_tufte() - Minimal-ink theme for
gttables -
gt_theme_preview() - Preview data in every theme
-
pal_midnight - A rank palette for dark backgrounds
-
theme_bg - Background colors used by the
gt_theme_*()table themes
-
gt_538_caption() - Add a 538-style caption to a
gttable -
gt_cutline() - Draw a labeled cut line between rows of a
gttable -
gt_marginalia() - Style a column as margin notes
-
gt_column_subheaders() - Add stacked column headers with subtitles to a
gttable -
gt_social_tag() - Add social handles to a
gttable -
gt_title_header() - Build a styled header block for a
gttable -
gt_watermark() - Put a watermark behind a
gttable
-
gt_legend_continuous() - Add a color legend to a
gttable -
gt_legend_discrete() - Add a discrete color key to a
gttable -
gt_color_pills() - Add color pills to
gttable columns -
gt_percentile_bar() - Draw percentile bars in a
gttable -
gt_row_accent() - Put a colored bar on the leading edge of each row
-
gt_color_ranks() - Color ranked columns of a
gttable -
gt_color_results() - Color rows of a
gttable by win, loss, or tie result -
gt_group_stripes() - Band alternate row groups of a
gttable -
gt_highlight_cells() - Fill individual cells in a
gttable by a condition -
gt_highlight_na() - Style and relabel missing values in a
gttable -
gt_outliers() - Flag outlying values in a
gttable -
gt_indicator_boxes() - Add colored indicator boxes to a
gttable -
gt_spotlight() - Focus on rows of a
gttable by dimming the rest
-
gt_bold_rows() - Bold rows in a
gttable -
gt_border_bars_bottom() - Add horizontal bars to the bottom of a
gttable -
gt_border_bars_top() - Add horizontal bars to the top of a
gttable -
gt_border_grid() - Add a border grid to a
gttable -
gt_delta() - Add a computed change column to a
gttable -
gt_fmt_rank() - Format numbers as ordinals in a
gttable -
gt_fmt_tally() - Combine count columns into a single cell in a
gttable -
gt_scale_note() - Scale columns and disclose the scaling
-
gt_significance() - Add significance stars to a
gttable -
gt_set_font() - Set one font family across a whole
gttable -
gt_tiers() - Color and bold the tier column of a
gttable -
gt_wrap_labels() - Break long column labels across lines in a
gttable
-
gt_grid() - Arrange several
gttables in a grid -
gt_snake() - Lay a long table out in side-by-side blocks
-
gt_snake_align() - Reshape a parallel frame to match a snaked table
-
gt_stack_tables() - Stack several
gttables vertically
-
gt_save_batch() - Save a matched set of images, one per group
-
gt_save_crop() - Save a
gttable to an image and trim its whitespace -
gt_social_crop() - Save a
gttable onto a fixed-ratio canvas
reactable Table Helpers
Cell renderers, column headers and team-colored cell styles for reactable tables.
-
reactable_sdv_logos()reactable_sdv_wordmarks()reactable_sdv_headshots() - Render Team Logos, Wordmarks and Headshots in 'reactable' Tables
-
reactable_sdv_cols_label() - Replace 'reactable' Column Headers with Team Logos
-
reactable_sdv_team_color_bar()reactable_sdv_team_color_bg() - Team-Colored Cell Styles for 'reactable' Tables
Team Utilities
Validate, clean and factor-order team abbreviations; look up team reference data and colors; control the image cache.
-
supported_sports() - Supported Sports
-
valid_team_names() - Output Valid Team Names
-
team_reference() - Get Team Reference Data
-
clean_team_abbrs() - Standardize Team Abbreviations
-
resolve_historical_abbr() - Resolve Historical Team Abbreviations
-
sdv_team_colors() - Get Team Colors
-
sdv_color_palette() - Get Team Color Palette
-
sdv_team_factor() - Order Team Names as a Factor
-
sdvplotR_clear_cache() - Clear the sdvplotR Caches
Court Coordinates
Convert stats.nba.com / stats.wnba.com shot-location columns into the sportyR basketball-court frame.
-
sdv_court_coords() - Convert stats.nba.com/stats.wnba.com Shot Locations to a sportyR Court Frame
-
sdv_team_tiers() - Create Team Tier Plots
Playing Surfaces
Regulation courts, fields and rinks from ‘sportyR’, styled in a team’s colors with its logo at center.
-
sdv_surface() - Team-Styled Playing Surfaces
-
ggtitle_image()theme_title_image() - Functions for Adding an Image to the Title of a ggplot
-
reexportsgeom_from_pathGeomFromPathelement_pathelement_rastergeom_mean_linesgeom_median_linesGeomRefLines - Objects exported from other packages
-
gt_color_legend()gt_centered_legend() - Deprecated legend functions