Skip to content

Instantly share code, notes, and snippets.

View j450h1's full-sized avatar

Jas Sohi j450h1

  • Microsoft
  • Vancouver, BC
View GitHub Profile
@j450h1
j450h1 / bb8_with_ggplot2.R
Created January 31, 2018 05:32 — forked from pvictor/bb8_with_ggplot2.R
A Star Wars BB-8 with ggplot2 !
# BB-8 --------------------------------------------------------------------
# Inspired by Brian Hough in http://codepen.io/bhough/pen/wawrPL
# Packages ----------------------------------------------------------------
library("dplyr")
library("ggplot2")
@j450h1
j450h1 / gist:fdfb1b8b236dbd68829d0b03804af9db
Created April 10, 2020 07:05 — forked from rich-iannone/gist:1da1ae7a7203958a0c5b1bd1d4b24017
This gt code allows you to make a summary table based on the `pizzaplace` dataset.
library(tidyverse)
library(paletteer)
library(gt)
pizzaplace %>%
mutate(type = case_when(
type == "chicken" ~ "chicken (pizzas with chicken as a major ingredient)",
type == "classic" ~ "classic (classical pizzas)",
type == "supreme" ~ "supreme (pizzas that try a little harder)",
type == "veggie" ~ "veggie (pizzas without any meats whatsoever)",