Skip to content

Commit

Permalink
Add gt themed example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Aug 1, 2024
1 parent 1c4f22b commit 1050f46
Show file tree
Hide file tree
Showing 4 changed files with 1,660 additions and 4 deletions.
18 changes: 16 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ vignette("Cookbook", package = "AAGIThemes")

### Create Tabular Outputs

{AAGIThemes} provides a {flextable} them suited for the AAGI style that works in HTML and Word document outputs.
{AAGIThemes} provides a {flextable} theme suited for the AAGI style that works in HTML and Word document outputs.
You can use it like so.

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

{AAGIThemes} provides a {gt} theme suited for the AAGI style that works best in HTML outputs.
You can use it like so.

```{r gtabular}
library(AAGIThemes)
library(dplyr)
library(gt)
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 1050f46

Please sign in to comment.