Package: mlbplotR 1.1.0.9007

mlbplotR: Create 'ggplot2' and 'gt' Visuals with Major League Baseball Logos

Tools to help visualize Major League Baseball analysis in 'ggplot2' and 'gt'. You provide team/player information and 'mlbplotR' will transform that information into team colors, logos, or player headshots for graphics.

Authors:Sebastian Carl [aut], Camden Kay [aut, cre, cph]

mlbplotR_1.1.0.9007.tar.gz
mlbplotR_1.1.0.9007.zip(r-4.5)mlbplotR_1.1.0.9007.zip(r-4.4)mlbplotR_1.1.0.9007.zip(r-4.3)
mlbplotR_1.1.0.9007.tgz(r-4.4-any)mlbplotR_1.1.0.9007.tgz(r-4.3-any)
mlbplotR_1.1.0.9007.tar.gz(r-4.5-noble)mlbplotR_1.1.0.9007.tar.gz(r-4.4-noble)
mlbplotR_1.1.0.9007.tgz(r-4.4-emscripten)mlbplotR_1.1.0.9007.tgz(r-4.3-emscripten)
mlbplotR.pdf |mlbplotR.html
mlbplotR/json (API)
NEWS

# Install 'mlbplotR' in R:
install.packages('mlbplotR', repos = c('https://camdenk.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/camdenk/mlbplotr/issues

On CRAN:

baseballggplot2sportsdataverse

5.88 score 19 stars 99 scripts 266 downloads 65 exports 67 dependencies

Last updated 9 days agofrom:ffa8209b5e. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 18 2024
R-4.5-winNOTENov 18 2024
R-4.5-linuxNOTENov 18 2024
R-4.4-winOKNov 18 2024
R-4.4-macOKNov 18 2024
R-4.3-winOKNov 18 2024
R-4.3-macOKNov 18 2024

Exports:clean_team_abbrselement_milb_dot_headshotelement_milb_dot_logoelement_milb_light_cap_logoelement_milb_logoelement_mlb_dark_cap_logoelement_mlb_dot_headshotelement_mlb_dot_logoelement_mlb_headshotelement_mlb_light_cap_logoelement_mlb_logoelement_mlb_scoreboard_logoelement_pathgeom_from_pathgeom_mean_linesgeom_median_linesgeom_milb_dot_headshotsgeom_milb_dot_logosgeom_milb_light_cap_logosgeom_milb_logosgeom_mlb_dark_cap_logosgeom_mlb_dot_headshotsgeom_mlb_dot_logosgeom_mlb_headshotsgeom_mlb_light_cap_logosgeom_mlb_logosgeom_mlb_scoreboard_logosGeomFromPathGeomMiLBdotheadsGeomMiLBdotlogoGeomMiLBlightcaplogoGeomMiLBlogoGeomMLBdarkcaplogoGeomMLBdotheadsGeomMLBdotlogoGeomMLBheadsGeomMLBlightcaplogoGeomMLBlogoGeomMLBscoreboardlogoGeomRefLinesggpreviewgt_fmt_milb_dot_headshotgt_fmt_milb_dot_logogt_fmt_milb_logogt_fmt_mlb_dot_headshotgt_fmt_mlb_dot_logogt_fmt_mlb_headshotgt_fmt_mlb_logogt_fmt_mlb_scoreboard_logogt_merge_stack_team_colorgt_mlb_column_labelsload_headshotsload_milb_teamsload_mlb_teamsmlb_player_tiersmlb_team_factormlb_team_tiersscale_color_mlbscale_colour_mlbscale_fill_mlbscale_x_mlbscale_y_mlbtheme_x_mlbtheme_y_mlbvalid_team_names

Dependencies:base64encbigDbitopsbslibcachemclicolorspacecommonmarkcurldata.tabledigestdplyrevaluatefansifarverfastmapfontawesomefsgenericsggplot2gluegtgtablehighrhtmltoolshtmlwidgetsisobandjquerylibjsonlitejuicyjuiceknitrlabelinglatticelifecyclemagickmagrittrmarkdownMASSMatrixmemoisemgcvmimemunsellnlmepillarpkgconfigR6rappdirsRColorBrewerRcppreactablereactRrlangrmarkdownsassscalestibbletidyselecttinytexutf8V8vctrsviridisLitewithrxfunxml2yaml

Readme and manuals

Help Manual

Help pageTopics
Standardize MLB Team Abbreviationsclean_team_abbrs
Theme Elements for Image Grobselement_milb_dot_headshot element_milb_dot_logo element_milb_light_cap_logo element_milb_logo element_mlb_dark_cap_logo element_mlb_dot_headshot element_mlb_dot_logo element_mlb_headshot element_mlb_light_cap_logo element_mlb_logo element_mlb_scoreboard_logo element_path
ggplot2 Layer for Visualizing MLB Team Cap Logosgeom_cap_logos geom_mlb_dark_cap_logos geom_mlb_light_cap_logos
ggplot2 Layer for Visualizing Images from URLs or Local Pathsgeom_from_path
ggplot2 Layer for Horizontal and Vertical Reference Linesgeom_mean_lines geom_median_lines
ggplot2 Layer for Visualizing MiLB Team Logosgeom_milb_dot_logos geom_milb_light_cap_logos geom_milb_logos
ggplot2 Layer for Visualizing MLB/MiLB Player Headshotsgeom_milb_dot_headshots geom_mlb_dot_headshots geom_mlb_headshots
ggplot2 Layer for Visualizing MLB Team Logosgeom_mlb_dot_logos geom_mlb_logos geom_mlb_scoreboard_logos
Preview ggplot in Specified Dimensionsggpreview
Merge and stack text from two columns in 'gt' and color one with team colorsgt_merge_stack_team_color
Add MiLB team logos into rows of a 'gt' tablegt_fmt_milb_dot_logo gt_fmt_milb_logo gt_milb
Add MLB team logos into rows of a 'gt' tablegt_fmt_mlb_dot_logo gt_fmt_mlb_logo gt_fmt_mlb_scoreboard_logo gt_mlb
Replace Team Abbreviations/Player IDs With Images In Column Labelsgt_mlb_column_labels
Render Player Headshots in 'gt' Tablesgt_fmt_milb_dot_headshot gt_fmt_mlb_dot_headshot gt_fmt_mlb_headshot gt_mlb_headshots
Output MLB Team Abbreviationsload_headshots
Load MiLB Team Colors, and Logosload_milb_teams
Load MLB Team Colors, and Logosload_mlb_teams
Create MLB Player Tiersmlb_player_tiers
Create Ordered MLB Team Factormlb_team_factor
Create MLB Team Tiersmlb_team_tiers
Axis Scales for MLB Team Logosscale_x_mlb scale_y_mlb
Scales for MLB Team Colorsscale_color_mlb scale_colour_mlb scale_fill_mlb
Theme for MLB Team Logostheme_x_mlb theme_y_mlb
Output Valid MLB Team Abbreviationsvalid_team_names