Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dicook/gretchenalbrecht
https://github.com/dicook/gretchenalbrecht
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dicook/gretchenalbrecht
- Owner: dicook
- License: mit
- Created: 2017-12-07T01:57:24.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-14T19:13:30.000Z (almost 7 years ago)
- Last Synced: 2024-10-11T18:36:02.421Z (27 days ago)
- Language: R
- Size: 178 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
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)
```