knitr::opts_chunk$set(echo = TRUE)
This package is a set of palettes for R based on the work of New Zealand expressionist painter Gretchen Albrecht. To install the package run:
devtools::install_github("dicook/gretchenalbrecht")
and to try it out:
library(ggplot2) library(gretchenalbrecht) library(ggthemes) data(nz_cart_census) ggplot(nz_cart_census, aes(x=long, y=lat, group=group, fill=MedianIncome2013)) + scale_fill_gretchenalbrecht(palette="winter_light", discrete=FALSE) + geom_polygon() + theme_map() + theme(legend.position="right")
Available palettes at the moment are:
names(gretchenalbrecht_palettes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.