knitr::opts_chunk$set(echo = TRUE)
library(tidyverse)
library(colorblindr)
library(ggridges)
library(eightdegrees)
library(patchwork)

R build status GitHub version CC-0 license Lifecycle: stable

Eight Degrees Brewing

Eight Degrees Brewing are an Irish brewery in Cork. I was inspired by the colour palette of their limited edition, Munro series.

Both scale_colour_ and scale_fill_ functions are included. The structure of this package is heavily inspired by the {colorblindr} r emo::ji("package").

install.packages("remotes")
remotes::install_github("jebbd/eightdegrees")

Munro Series

8 colour paired palettes based on the limited edition Munro series

colorblindr::gg_color_swatches(8)+scale_fill_munro()

tibble(
  a=rnorm(100),b=rnorm(100,mean=1),c=rnorm(100,mean=2),d=rnorm(100,mean=3),
  e=rnorm(100),f=rnorm(100,mean=-1),g=rnorm(100,mean=-2),h=rnorm(100,mean=-3)
  )%>%
    pivot_longer(everything(),names_to="letters",values_to="values")%>%
    ggplot(aes(x=values,y=letters,fill=letters))+geom_density_ridges2()+
      scale_fill_munro(guide=NULL)+theme_ridges()+labs(y="",x="")

munro palette

Core Range

6 colour palette based on the core range from 8 degrees brewing

colorblindr::gg_color_swatches(6)+scale_fill_core_range()

tibble(
  a=rnorm(100),b=rnorm(100,mean=1),c=rnorm(100,mean=2),
  d=rnorm(100),e=rnorm(100,mean=-1),f=rnorm(100,mean=-2)
  )%>%
    pivot_longer(everything(),names_to="letters",values_to="values")%>%
    ggplot(aes(x=values,y=letters,fill=letters))+geom_density_ridges2()+
      scale_fill_core_range(guide=NULL)+theme_ridges()+labs(y="",x="")

core range palette


Unfortunately these palettes are not colourblind safe
But if you request two colours from either palette the returned pair is a colourblind safe blue and orange.

colorblind grid



jebbd/eightdegrees documentation built on March 9, 2021, 3:06 p.m.