knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "figure/", fig.height = 1 )
Palettes derived from El Greco paintings. I have only included color blind safe palettes.
devtools::install_github("markushlang/elgreco")
library("elgreco") # See all palettes names(elgreco_palettes)
elgreco_palette("AndrewFrancis1")
elgreco_palette("AndrewFrancis2")
library(ggplot2) url <- "https://raw.githubusercontent.com/allisonhorst/penguins/master/data/penguins_size.csv" penguins <- read.csv(url) ggplot(penguins, aes(flipper_length_mm, body_mass_g, color = species)) + geom_jitter(size = 3) + scale_color_manual(values = elgreco_palette("AndrewFrancis1")) + theme_minimal() + labs(title="Penguin size, Palmer Station LTER", subtitle="Flipper length and body mass for Adelie, Chinstrap and Gentoo Penguins")
elgreco_palette("Annunciation1")
elgreco_palette("Annunciation2")
elgreco_palette("Caridad1")
elgreco_palette("Caridad2")
elgreco_palette("Disrobing1")
elgreco_palette("Disrobing2")
elgreco_palette("Immaculate1")
elgreco_palette("Immaculate2")
elgreco_palette("Laocoon1")
elgreco_palette("Laocoon2")
elgreco_palette("Marriage1")
elgreco_palette("Marriage2")
elgreco_palette("Shepherds1")
ggplot(penguins, aes(x = flipper_length_mm)) + geom_histogram(aes(fill = species), alpha = 0.85, position = "identity") + scale_fill_manual(values = elgreco_palette("Shepherds1")) + theme_minimal() + labs(x = "Flipper length (mm)", y = "Frequency", title = "Penguin flipper lengths")
elgreco_palette("Luke1")
elgreco_palette("Luke2")
elgreco_palette("Toledo1")
elgreco_palette("Toledo2")
elgreco_palette("John1")
elgreco_palette("John2")
This package is inspired by Karthik Ram's wesanderson
package and ewen's ghibli
package.
The penguins dataset used for illustration purposes comes from Allison Horst.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.