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 |
nord palette colors ramped to a specified length
nord(palette = "polarnight", n, alpha = 1, reverse = FALSE)
nord(palette = "polarnight", n, alpha = 1, reverse = FALSE)
palette |
Choose from 'nord_palettes' list |
n |
Number of colors to display |
alpha |
transparency |
reverse |
If TRUE, the direction of the colours is reversed. |
library(nord) image(volcano, col = nord("aurora", 20))
library(nord) image(volcano, col = nord("aurora", 20))
nord palette with ramped colours
nord_pal(palette = "polarnight", alpha = 1, reverse = FALSE)
nord_pal(palette = "polarnight", alpha = 1, reverse = FALSE)
palette |
Choose from 'nord_palettes' list |
alpha |
transparency |
reverse |
If TRUE, the direction of the colours is reversed. |
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.
nord_palettes
nord_palettes
An object of class list
of length 16.
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/)
Given a character vector (hex RGB values), display palette in graphics window.
nord_show_palette(palette)
nord_show_palette(palette)
palette |
vector of character hex RGB values |
library(nord) nord_show_palette("halifax_harbor")
library(nord) nord_show_palette("halifax_harbor")
nord color scale for ggplot2
scale_color_nord(palette = "polarnight", discrete = TRUE, alpha = 1, reverse = FALSE, ...) scale_colour_nord(palette = "polarnight", discrete = TRUE, alpha = 1, reverse = FALSE, ...)
scale_color_nord(palette = "polarnight", discrete = TRUE, alpha = 1, reverse = FALSE, ...) scale_colour_nord(palette = "polarnight", discrete = TRUE, alpha = 1, reverse = FALSE, ...)
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 |
library(ggplot2) library(nord) ggplot(diamonds) + geom_point(aes(x = carat, y = price, color = cut)) + scale_color_nord("lumina")
library(ggplot2) library(nord) ggplot(diamonds) + geom_point(aes(x = carat, y = price, color = cut)) + scale_color_nord("lumina")
#' nord fill scale for ggplot2
scale_fill_nord(palette = "polarnight", discrete = TRUE, alpha = 1, reverse = FALSE, ...)
scale_fill_nord(palette = "polarnight", discrete = TRUE, alpha = 1, reverse = FALSE, ...)
palette |
Choose from 'nord_palettes' list |
discrete |
whether to use a discrete colour palette |
alpha |
pass through parameter to |
reverse |
If TRUE, the direction of the colours is reversed. |
... |
additional arguments to pass to scale_color_gradientn |
library(ggplot2) library(nord) ggplot(diamonds) + geom_bar(aes(x = cut, fill = clarity)) + scale_fill_nord("victory_bonds")
library(ggplot2) library(nord) ggplot(diamonds) + geom_bar(aes(x = cut, fill = clarity)) + scale_fill_nord("victory_bonds")