MyNixOS website logo
Description

Arctic Ice Studio's Nord and Group of Seven Inspired Colour Palettes for 'ggplot2'.

Provides the Arctic Ice Studio's Nord and Group of Seven inspired colour palettes for use with 'ggplot2' via custom functions.

nord: Northern-themed Color palettes

Travis Build Status AppVeyor Build Status CRAN status CRAN_Download_Badge

The goal of nord is to provide access to many northern inspired palettes:

  1. 4 colour palettes from ArticIceStudio's Nord Palettes
  2. 1 color palette extracted from Lumina Borealis
  3. 11 colour palettes extracted from the works of the Group of Seven.

These palettes can be used both with ggplot2, lattice and base R plotting to provide color to charts and graphics. The palettes in nord try to split equally between qualitative, sequential and diverging data, similar to the categories used in ColorBrewer. Further information and use of each palette can be found in the vignette.

Installation

You can install nord from CRAN:

install.packages("nord")

or you can install the development version of nord from github with:

# install.packages("devtools")
devtools::install_github("jkaupp/nord")

The Palettes of nord

library(nord)
library(purrr)

par(mfrow=c(8, 2), lheight = 2, mar=rep(1, 4), adj = 0)

walk(names(nord_palettes), nord_show_palette)

Example

This is a basic example which shows you how to use the different features in nord:

Here is how to use scale_fill_nord() with ggplot2

library(ggplot2)
library(nord)

ggplot(diamonds) + 
  geom_bar(aes(x = cut, fill = clarity)) +
  scale_fill_nord("victory_bonds")

Here is using the nord function, with built in color-ramping, with the obligatory base r volcano.

image(volcano, col = nord("aurora", 20))

You can view the individual palettes in nord via nord_show_palette()

nord_show_palette("baie_mouton")

Acknowledgements

I started building this package long ago, as part of my own personal utility packages, as I have been using the nord palettes from ArcticIce Studioes for quite some time. A few months ago, I read something on the interwebs stating that work you did that was still private was pretty much a waste, so share it openly. That struck a chord. Then I read Maelle Salmon's "How to Develop Good R Packages (for open science)", and was introduced to usethis, styler and goodpractice. That was the catalyst for making this package.

I drew inspiration from many color palette packages out there (viridis, ochRe, swatches, wesanderson, RColorBrewer), and used a lot of the functions to modernize, streamline and finally create nord.

Referenced Work from the Group of Seven

  • Forest, Algoma by Arthur Lismer
  • Entrance to Halifax Harbor by AY Jackson
  • Baie des Moutons by Edwin Holgate
  • Moose Pond by Frank H Johnston
  • A Northern Silver Mine by Franklin Carmichael
  • The Cloudy Red Mountain by Frederick H Varley
  • Give Us the Tools by AJ Casson
  • Mountain Forms by Lawren S. Harris
  • Afternoon Sun Lake Superior by Lawren S. Harris
  • Goat Range Rocky Mountain by JEH MacDonald
  • Sunny Afternoon Prarie by Lionel LeMoine Fitzgerald.
Metadata

Version

1.0.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows