{"id":14067141,"url":"https://github.com/jacquietran/wnblr","last_synced_at":"2025-10-06T02:20:56.564Z","repository":{"id":45881292,"uuid":"428531015","full_name":"jacquietran/wnblr","owner":"jacquietran","description":"An R package containing game stats from the Women's National Basketball League (WNBL).","archived":false,"fork":false,"pushed_at":"2022-01-05T03:44:24.000Z","size":28917,"stargazers_count":11,"open_issues_count":14,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T16:12:08.606Z","etag":null,"topics":["basketball","data","r","r-package","wnbl"],"latest_commit_sha":null,"homepage":"","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/jacquietran.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-16T05:39:38.000Z","updated_at":"2025-03-03T05:35:51.000Z","dependencies_parsed_at":"2022-09-10T20:01:55.589Z","dependency_job_id":null,"html_url":"https://github.com/jacquietran/wnblr","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jacquietran/wnblr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacquietran%2Fwnblr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacquietran%2Fwnblr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacquietran%2Fwnblr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacquietran%2Fwnblr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacquietran","download_url":"https://codeload.github.com/jacquietran/wnblr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacquietran%2Fwnblr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278548003,"owners_count":26004815,"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-10-06T02:00:05.630Z","response_time":65,"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":["basketball","data","r","r-package","wnbl"],"created_at":"2024-08-13T07:05:27.155Z","updated_at":"2025-10-06T02:20:56.536Z","avatar_url":"https://github.com/jacquietran.png","language":"R","funding_links":[],"categories":["R"],"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}\n\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n\n```\n\n# wnblr \u003cimg src=\"man/img/wnblr_hex_green_bg.png\" align=\"right\" height=\"150\" /\u003e\u0026nbsp;\u003cimg src=\"man/img/wnblr_hex_gold_bg.png\" align=\"right\" height=\"150\" /\u003e\n\n\u003c!-- badges: start --\u003e\n\u003ca href=\"https://www.repostatus.org/#wip\"\u003e\u003cimg src=\"https://www.repostatus.org/badges/latest/wip.svg\" alt=\"Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.\" /\u003e\u003c/a\u003e\n[![GitHub latest commit](https://img.shields.io/github/last-commit/jacquietran/wnblr)](https://github.com/badges/shields)\n[![GitHub open issues](https://img.shields.io/github/issues-raw/jacquietran/wnblr)](https://github.com/jacquietran/wnblr/issues)\n\u003c!-- badges: end --\u003e\n\n\u003e ~~Buyer~~ **Coder beware:** As of Dec 2021, this package is undergoing major re-development. The next version will introduce many improvements but also breaking changes.\n\nThe `wnblr` package contains a range of game statistics from the Australian [**Women's National Basketball League (WNBL)**](https://www.wnbl.com.au):\n\n- `box_scores`: Team-level box scores, with all your usual basketball box score metrics like points scored, field goals made / attempted, free throws made / attempted, rebounds, turnovers, and the like.\n- `box_scores_detailed`: Player-level box scores.\n- `pbp`: Play-by-play data.\n- `shots`: Shots data, primarily containing XY shot locations.\n\n## Installation\n\nInstall the development version of `wnblr` from GitHub with:\n\n``` r\n# install.packages(\"remotes\")\nremotes::install_github(\"jacquietran/wnblr\")\n```\n## Examples\n\nThere's lots to work with - for example, here's a quick look at the `shots` data:\n\n```{r summarise_shots, message = FALSE}\n\n# Load libraries\nlibrary(wnblr)\nlibrary(dplyr)\n\n# Frequency of shot types attempted in the 2020 season\nshots %\u003e%\n  filter(season == 2020) %\u003e%\n  select(sub_type, shot_result) %\u003e%\n  group_by(sub_type) %\u003e%\n  summarise(n = n()) %\u003e%\n  ungroup() %\u003e%\n  arrange(desc(n))\n\n```\n\nWith a little bit of elbow grease, you can move neatly from data to plot, too:\n\n```{r plot, dpi=320, message = FALSE}\n\n# Load libraries\nlibrary(ggplot2)\nlibrary(showtext)\n\n# Tidy data\nmagbegor \u003c- box_scores_detailed %\u003e%\n  filter(scoreboard_name == \"E. Magbegor\") %\u003e%\n  select(season, contains(\"field_goals\")) %\u003e%\n  group_by(season) %\u003e%\n  summarise(\n    `Field goals made` = round(mean(field_goals_made), 1),\n    `Field goals attempted` = round(mean(field_goals_attempted), 1),\n    `Field goal %` = round(mean(field_goals_percentage), 1)) %\u003e%\n  ungroup() %\u003e%\n  tidyr::pivot_longer(\n    cols = c(`Field goals made`,\n             `Field goals attempted`,\n             `Field goal %`),\n    names_to = \"key\",\n    values_to = \"value\") %\u003e%\n  mutate(\n    key = factor(\n      key, levels = c(\"Field goals made\",\n                      \"Field goals attempted\",\n                      \"Field goal %\")))\n\n# Import Google Fonts\nfont_add_google(name = \"Patua One\", family = \"patua\")\nfont_add_google(name = \"Source Sans Pro\", family = \"source\")\n\n# Build plot\nshowtext_auto()\n# After building the plot, run showtext_auto(FALSE) to close off\nggplot(\n  magbegor,\n  aes(x = season, y = value, group = key, fill = key)) +\n  facet_wrap(~key, nrow = 1, scales = \"free_y\") +\n  geom_bar(stat = \"identity\") +\n  scale_fill_manual(values = c(\"#FFC53D\", \"#688d3a\", \"#0E4735\")) +\n  labs(\n    title = \"Ezi Magbegor: WNBL shooting averages from 2017-2020\",\n    x = \"Season\", y = NULL,\n    caption = \"Data source: {wnblr} \u0026 WNBL.com.au | Plot: @jacquietran\") +\n  ggdark::dark_mode() +\n  theme(\n    legend.position = \"none\",\n    text = element_text(\n      colour = \"#FFFFFF\", family = \"source\", size = 48),\n    plot.title = element_text(\n      family = \"patua\", margin=margin(0,0,15,0)),\n    plot.caption = element_text(margin=margin(15,0,0,0)))\n\n```\n\n```{r, echo = FALSE}\n\nshowtext_auto(FALSE)\n\n```\n\n## Known issues\n\nGame data is missing or wildly incomplete for some games in most of the seasons from 2014/2015 to 2020, as documented [here](https://github.com/jacquietran/wnblr/issues/23). If anyone has leads on where to find live stats from the games listed as \"missing\", feel free to log an issue and let me know!\n\n## Hex logos\n\nCourtesy of [**@PythonUnicornCoder**](https://github.com/PythonUnicornCoder) - thank you!!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacquietran%2Fwnblr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacquietran%2Fwnblr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacquietran%2Fwnblr/lists"}