Skip to content

Commit

Permalink
add {gt} example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Dec 13, 2024
1 parent 5793759 commit 5c30162
Show file tree
Hide file tree
Showing 4 changed files with 495 additions and 5 deletions.
19 changes: 18 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ vignette("Cookbook", package = "AAGIThemes")
### Create Tabular Outputs

{AAGIThemes} provides [{flextable}](https://davidgohel.github.io/flextable/) and [{gt}](https://gt.rstudio.com) themes suited for the AAGI style that works in HTML and Word document outputs.

#### Creating Themed {flextable} Outputs

You can use it like so with {flextable}.

```{r tabular}
```{r ft-tabular}
library(AAGIThemes)
library(dplyr)
library(flextable)
Expand All @@ -66,6 +69,20 @@ ft <- theme_ft_aagi(ft)
ft
```

#### Creating Themed {gt} Outputs

You can use it like so with {gt}.

```{r gt-tabular}
library(gt)
library(dplyr)
gt <- head(airquality) |>
mutate(`Month Name` = "May") |>
gt()
gt <- theme_gt_aagi(gt)
gt
```

### Plots and graphs

{AAGIThemes} provides several functions to assist users in creating plots, charts and graphs with a more unified AAGI style.
Expand Down
Loading

0 comments on commit 5c30162

Please sign in to comment.