From aaeee05a9532e9048224b9215a169e5a9d109f41 Mon Sep 17 00:00:00 2001 From: andreweatherman <63006926+andreweatherman@users.noreply.github.com> Date: Thu, 8 Feb 2024 16:41:05 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20andrewea?= =?UTF-8?q?therman/cbbdata@c08623a3e42892db30a62e093c15d79f4172050c=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 88 +++++++----------- pkgdown.yml | 2 +- reference/cbd_torvik_resume_database.html | 16 ++-- reference/cbd_torvik_team_history.html | 2 +- .../figures/README-unnamed-chunk-5-1.png | Bin 35122 -> 41475 bytes .../figures/README-unnamed-chunk-6-1.png | Bin 17338 -> 17306 bytes search.json | 2 +- 7 files changed, 44 insertions(+), 66 deletions(-) diff --git a/index.html b/index.html index 0b361ed..c80ff91 100644 --- a/index.html +++ b/index.html @@ -150,19 +150,20 @@
cbbdata
ships with the gt_theme_athletic
theme for gt
tables. The theme is perfect for stat-focused tables, giving them a classic, monospaced feel.
-cbbdata::cbd_torvik_ratings(year=2024) %>%
- dplyr::slice(1:5) %>%
- dplyr::select(team, conf, barthag, adj_o, adj_d) %>%
- gt::gt() %>%
- cbbdata::gt_theme_athletic()
Also included in cbbdata
is a helper function for plotting team logos with gt
. Simply pass in a dataframe with team names, specify where your ‘team’ logo resides, and the name of the new column (using the same name as your ‘team’ column will replace that column – perfect for gt
).
-cbbdata::cbd_torvik_ratings(year=2024) %>%
- dplyr::slice(1:5) %>%
- dplyr::select(team, conf, barthag, adj_o, adj_d) %>%
- cbbdata::cbd_gt_logos(team, team) %>%
- gt::gt() %>%
- cbbdata::gt_theme_athletic() %>%
- gt::fmt_markdown(team) %>%
- gt::cols_align(columns = team, 'left')
The CBBData API is free to use but hosting it is not! If you find this resource helpful, please kindly consider supporting me and the project on Ko-fi.