Skip to contents

Loads team colors, and logos - useful for plots!

Usage

load_mlb_teams()

Value

A tibble of team-level abbreviations, image URLs, and hex color codes.

See also

Issues with this data should be filed here: https://github.com/camdenk/mlbplotR

Examples

# \donttest{
load_mlb_teams()
#> # A tibble: 33 × 19
#>    team_name     team_…¹ team_…² team_…³ team_…⁴ team_…⁵ team_…⁶ team_…⁷ team_…⁸
#>    <chr>         <chr>   <chr>   <chr>     <dbl> <chr>   <chr>   <chr>   <chr>  
#>  1 Arizona Diam… Arizona Diamon… AZ          109 https:… https:… https:… https:…
#>  2 Atlanta Brav… Atlanta Braves  ATL         144 https:… https:… https:… https:…
#>  3 Baltimore Or… Baltim… Orioles BAL         110 https:… https:… https:… https:…
#>  4 Boston Red S… Boston  Red Sox BOS         111 https:… https:… https:… https:…
#>  5 Chicago Cubs  Chicago Cubs    CHC         112 https:… https:… https:… https:…
#>  6 Chicago Whit… Chicago White … CWS         145 https:… https:… https:… https:…
#>  7 Cincinnati R… Cincin… Reds    CIN         113 https:… https:… https:… https:…
#>  8 Cleveland Gu… Clevel… Guardi… CLE         114 https:… https:… https:… https:…
#>  9 Colorado Roc… Colora… Rockies COL         115 https:… https:… https:… https:…
#> 10 Detroit Tige… Detroit Tigers  DET         116 https:… https:… https:… https:…
#> # … with 23 more rows, 10 more variables: team_color <chr>, team_color2 <chr>,
#> #   team_color3 <chr>, team_color4 <chr>, team_color5 <chr>, team_league <chr>,
#> #   team_division <chr>, team_division_location <chr>, team_league_logo <chr>,
#> #   mlb_logo <chr>, and abbreviated variable names ¹​team_location,
#> #   ²​team_mascot, ³​team_abbr, ⁴​team_id_num, ⁵​team_logo_espn,
#> #   ⁶​team_scoreboard_logo_espn, ⁷​team_cap_logo_on_light, ⁸​team_cap_logo_on_dark
# }