{"id":33187096,"url":"https://camdenk.github.io/mlbplotR/","last_synced_at":"2025-11-25T18:00:40.921Z","repository":{"id":39963472,"uuid":"458004271","full_name":"camdenk/mlbplotR","owner":"camdenk","description":"R package to easily plot MLB logos","archived":false,"fork":false,"pushed_at":"2025-09-05T22:07:56.000Z","size":253583,"stargazers_count":23,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-10T11:56:42.447Z","etag":null,"topics":["baseball","ggplot2","r","rstats","sportsdataverse"],"latest_commit_sha":null,"homepage":"https://camdenk.github.io/mlbplotR/","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/camdenk.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-02-11T01:23:08.000Z","updated_at":"2025-09-17T18:03:09.000Z","dependencies_parsed_at":"2024-05-12T05:25:13.464Z","dependency_job_id":"e868c846-204b-4266-a661-96d00048e807","html_url":"https://github.com/camdenk/mlbplotR","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/camdenk/mlbplotR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camdenk%2FmlbplotR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camdenk%2FmlbplotR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camdenk%2FmlbplotR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camdenk%2FmlbplotR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/camdenk","download_url":"https://codeload.github.com/camdenk/mlbplotR/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/camdenk%2FmlbplotR/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-25T02:00:05.816Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["baseball","ggplot2","r","rstats","sportsdataverse"],"created_at":"2025-11-16T05:00:30.371Z","updated_at":"2025-11-25T18:00:40.916Z","avatar_url":"https://github.com/camdenk.png","language":"R","funding_links":[],"categories":["Icons, patterns and images"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\",\n  dpi = 600\n)\n```\n\n# mlbplotR \u003ca\u003e\u003cimg src='man/figures/logo.png' align=\"right\" width=\"25%\" min-width=\"120px\" /\u003e\u003c/a\u003e\n\n\u003c!-- badges: start --\u003e\n[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg?style=flat-square)](https://lifecycle.r-lib.org/articles/stages.html)\n[![R-CMD-check](https://github.com/camdenk/mlbplotR/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/camdenk/mlbplotR/actions/workflows/R-CMD-check.yaml)\n\u003c!-- badges: end --\u003e\n\nThe code for this package was copied heavily from [nflplotR](https://nflplotr.nflverse.com/index.html) with minor changes to support Major League Baseball logos.\n\n\nThe goal of mlbplotR is to provide functions and geoms that help with visualizations of MLB related analysis. It provides ggplot2 geoms that do the heavy lifting of plotting MLB logos in high quality, with correct aspect ratio, and possible transparency.\n\n## Installation\n\nThe easiest way to get mlbplotR is to install it from  [CRAN](https://CRAN.R-project.org) with:\n\n``` r\ninstall.packages(\"mlbplotR\")\n```\n\nTo get a bug fix or use a feature from the development version, you can install the development version from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"camdenk/mlbplotR\")\n```\n## Usage\n\nLet's plot every team on a grid with some extra customization:\n\n```{r every-team, message = FALSE}\nlibrary(mlbplotR)\nlibrary(ggplot2)\nlibrary(dplyr)\n\nteams_colors_logos \u003c- mlbplotR::load_mlb_teams() |\u003e \n  dplyr::filter(!team_abbr %in% c(\"AL\", \"NL\", \"MLB\")) |\u003e \n  dplyr::mutate(\n    a = rep(1:6, 5),\n    b = sort(rep(1:5, 6), decreasing = TRUE)\n  )\n\n\n ggplot2::ggplot(teams_colors_logos, aes(x = a, y = b)) +\n   mlbplotR::geom_mlb_logos(aes(team_abbr = team_abbr), width = 0.075) +\n   ggplot2::geom_label(aes(label = team_abbr), nudge_y = -0.35, alpha = 0.5) +\n   ggplot2::theme_void() \n```\n\nThere is a [getting started guide](https://camdenk.github.io/mlbplotR/articles/mlbplotR.html) that will walk you through more use cases for the package.\n\n\n## Contributing\n\n-   [Open an issue](https://github.com/camdenk/mlbplotR/issues/new/choose) if you'd like to request specific data or report a bug/error.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/camdenk.github.io%2FmlbplotR%2F","html_url":"https://awesome.ecosyste.ms/projects/camdenk.github.io%2FmlbplotR%2F","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/camdenk.github.io%2FmlbplotR%2F/lists"}