knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "figure/", fig.height = 1 )
Thank you github.com/dill/beyonce for the framework of this palette generator. Thank you Beyoncé for your color inspo.
Please Vote in November!.
devtools::install_github("rptashkin/covfefe")
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.