Package 'nord'

Title: Arctic Ice Studio's Nord and Group of Seven Inspired Colour Palettes for 'ggplot2'
Description: Provides the Arctic Ice Studio's Nord and Group of Seven inspired colour palettes for use with 'ggplot2' via custom functions.
Authors: Jake Kaupp [aut, cre]
Maintainer: Jake Kaupp <[email protected]>
License: MIT + file LICENSE
Version: 1.0.0
Built: 2025-03-08 03:00:06 UTC
Source: https://github.com/jkaupp/nord

Help Index


nord palette colors ramped to a specified length

Description

nord palette colors ramped to a specified length

Usage

nord(palette = "polarnight", n, alpha = 1, reverse = FALSE)

Arguments

palette

Choose from 'nord_palettes' list

n

Number of colors to display

alpha

transparency

reverse

If TRUE, the direction of the colours is reversed.

Examples

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

nord palette with ramped colours

Description

nord palette with ramped colours

Usage

nord_pal(palette = "polarnight", alpha = 1, reverse = FALSE)

Arguments

palette

Choose from 'nord_palettes' list

alpha

transparency

reverse

If TRUE, the direction of the colours is reversed.


Nord and northern-themed color palettes

Description

Nord: An arctic, north-bluish color palette. Created for the clean- and minimal flat design pattern to achieve a optimal focus and readability for code syntax highlighting and UI. It consists of four palettes utilizing a total of sixteen, carefully selected, dimmed pastel colors for a eye-comfortable, but yet colorful ambiance.

Usage

nord_palettes

Format

An object of class list of length 16.

Details

The available palettes are: polarnight snowstorm frost aurora

There are also 11 Colour palettes extracted from the works of the [Group of Seven](https://en.wikipedia.org/wiki/Group_of_Seven_(artists)) and one color palette drawn from [Lumina Borealis](https://www.luminaborealis.com/)


Display a color palette

Description

Given a character vector (hex RGB values), display palette in graphics window.

Usage

nord_show_palette(palette)

Arguments

palette

vector of character hex RGB values

Examples

library(nord)
nord_show_palette("halifax_harbor")

nord color scale for ggplot2

Description

nord color scale for ggplot2

Usage

scale_color_nord(palette = "polarnight", discrete = TRUE, alpha = 1,
  reverse = FALSE, ...)

scale_colour_nord(palette = "polarnight", discrete = TRUE, alpha = 1,
  reverse = FALSE, ...)

Arguments

palette

Choose from 'nord_palettes' list

discrete

whether to use a discrete colour palette

alpha

transparency

reverse

logical, Reverse the order of the colours?

...

additional arguments to pass to scale_color_gradientn

Examples

library(ggplot2)
library(nord)

ggplot(diamonds) +
 geom_point(aes(x = carat, y = price, color = cut)) +
 scale_color_nord("lumina")

#' nord fill scale for ggplot2

Description

#' nord fill scale for ggplot2

Usage

scale_fill_nord(palette = "polarnight", discrete = TRUE, alpha = 1,
  reverse = FALSE, ...)

Arguments

palette

Choose from 'nord_palettes' list

discrete

whether to use a discrete colour palette

alpha

pass through parameter to viridis

reverse

If TRUE, the direction of the colours is reversed.

...

additional arguments to pass to scale_color_gradientn

Examples

library(ggplot2)
library(nord)

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