Skip to content

Instantly share code, notes, and snippets.

@dgkeyes
Created October 23, 2020 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgkeyes/7f2cced1b4ffd2c8cf7f86fdf462c7af to your computer and use it in GitHub Desktop.
Save dgkeyes/7f2cced1b4ffd2c8cf7f86fdf462c7af to your computer and use it in GitHub Desktop.
library(tidyverse)
library(palmerpenguins)
library(gt)
penguins %>%
count(species) %>%
gt() %>%
data_color(
columns = vars(n),
colors = scales::col_numeric(
palette = "Blues",
domain = NULL)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment