Skip to content

Instantly share code, notes, and snippets.

@jthomasmock
Created October 25, 2022 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jthomasmock/006749470cfbcf85685dd1472a505fb1 to your computer and use it in GitHub Desktop.
Save jthomasmock/006749470cfbcf85685dd1472a505fb1 to your computer and use it in GitHub Desktop.
library(gtExtras)
library(gt)
library(dplyr)
base_gt <- mtcars |>
group_by(cyl) |>
summarize(n = n(), mean = mean(mpg), data = list(mpg)) |>
gt()
base_gt |>
gt_plt_sparkline(data, palette = c("black", rep("transparent", 4)))
# Gist URL https://gist.github.com/006749470cfbcf85685dd1472a505fb1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment