Description Usage Format Examples
A collection of colour palettes inspired by the paintings of NZ abstract expressionist Gretchen Albrecht: rocker black_plain flood_tide last_rays red_sky_golden_cloud winged_spill pink_cloud winter_light
1 |
An object of class list
of length 8.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Print out the palettes available
gretchenalbrecht_palettes
# Make an x-y plot using the rocker palette
library(tidyverse)
data(diamonds)
diamonds_small <- diamonds %>% sample_n(1000)
ggplot(diamonds_small,
aes(x=carat, price, colour=cut, shape=cut)) +
geom_point(size=4, alpha=0.5) +
scale_colour_gretchenalbrecht(palette="rocker") +
theme_bw() + theme(aspect.ratio=1)
# Make a histogram using the pink_cloud palette
ggplot(diamonds_small, aes(x=price, fill=cut)) + geom_histogram() +
scale_fill_gretchenalbrecht(palette="pink_cloud") + theme_bw()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.