This is an R HTML document. When you click the chunk like this:

Table showing Miles per Gallon
  library(tidyverse)
## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
## ✔ dplyr     1.1.4     ✔ readr     2.1.5
## ✔ forcats   1.0.0     ✔ stringr   1.5.1
## ✔ ggplot2   3.5.1     ✔ tibble    3.2.1
## ✔ lubridate 1.9.3     ✔ tidyr     1.3.1
## ✔ purrr     1.0.2     
## ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
## ✖ dplyr::filter() masks stats::filter()
## ✖ dplyr::lag()    masks stats::lag()
## ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
  library(gtExtras)
## Loading required package: gt
  library(gt)
  install.packages('svglite')
## Installing package into 'C:/Users/admin/AppData/Local/R/win-library/4.4'
## (as 'lib' is unspecified)
## Error in contrib.url(repos, "source"): trying to use CRAN without setting a mirror
  library(svglite)

   mtcars %>%
     group_by(cyl) %>%
     summarize(Median = round(median(mpg),1),
               Mean = round(mean(mpg),1),
               Distribution = list(mpg)) %>%
     gt() %>%
     gt_plt_dist(Distribution) %>%
     gt_theme_guardian() %>%
     tab_header(title = "Miles per gallon")
Miles per gallon
cyl Median Mean Distribution
4 26.0 26.7
6 19.7 19.7
8 15.2 15.1