Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dicook/gretchenalbrecht


https://github.com/dicook/gretchenalbrecht

Last synced: 3 days ago
JSON representation

Awesome Lists containing this project

README

        

---
title: "gretchenalbrecht"
author: "Dianne Cook"
date: "`r format(Sys.time(), '%B %d, %Y')`"
output:
html_document:
keep_md: true
---

```{r setup, include=FALSE}
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](https://en.wikipedia.org/wiki/Gretchen_Albrecht). To install the package run:

```
devtools::install_github("dicook/gretchenalbrecht")
```

and to try it out:

```{r}
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:

```{r}
names(gretchenalbrecht_palettes)
```