knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "figure/",
  fig.height = 1
)

Covfefe Palettes

Thank you github.com/dill/beyonce for the framework of this palette generator. Thank you Beyoncé for your color inspo.

Please Vote in November!.

Installation

devtools::install_github("rptashkin/covfefe")

Usage

library(covfefe)
print(covfefe_palette(1))

library(ggplot2)
pal <- covfefe_palette(1, 8, type = "continuous")
ggplot(heatmap, aes(x = X2, y = X1, fill = value)) +
   geom_tile() +
   scale_fill_gradientn(colours = pal) +
   scale_x_discrete(expand = c(0, 0)) +
   scale_y_discrete(expand = c(0, 0)) +
   coord_equal()



rptashkin/covfefe documentation built on Aug. 6, 2020, 12:15 a.m.