naturalette

naturalette package offers a variety of color palettes based on the colors of some of the world's most iconic natural spaces and parks. This package offers a set of functions available as ggplot2 scales:

-scale_color_nature()

-scale_fill_nature()

La bellesa es la responsable de la veritat; i com que l'art és bellesa, sense veritat no hi ha art.

--- Antoni Gaudí


Installation
Palettes
Functions

Install Package

Currently, the package is only able to be downloaded through github

install.packages("devtools") 
devtools::install_github("AlbertMorera/naturalette") 

Palettes

Yellowstone

This palette is inspired by the colors of the hot spring of the Yellostone National Park (such as Grand Prismatic Spring.

print_palette("Yellowstone")

ExPalette

Banff

This color palette is inspired by the distinctive view of Lake Louise and the surrounding mountains in the Banff National Park (Canada).

print_palette("Banff")

ExPalette

Valley of the Flowers

Here we are inspired by the colors of the Valley of the Flowers National Park in springtime, when there is an explosion of life culminated by the flowering of all the plants in the valley.

print_palette("Flowers")

ExPalette

Sequoia

This divergent palette is inspired by the colors of the tallest tree species in the world: the sequoia (Sequoia sempervirens) from the Sequooia National Park.

print_palette("Sequoia")

ExPalette

Iceland

Who denies that the northern lights (Aurora) are one of the greatest natural spectacles in the world? Well, here is a palette inspired by them.

print_palette("Iceland")

ExPalette

Functions

Continuous scales

ggplot(data=iris, aes(x=Species, y=Sepal.Width, color=Sepal.Width)) +
  geom_point(size=3) +
  scale_color_nature(palette = "Flowers", discrete=F)

Exggplot2

Discrete scales

ggplot(data=iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) +
  geom_point(size=2) +
  scale_color_nature(palette = "Yellowstone")

Exggplot2

ggplot(data=iris, aes(x=Species, y=Petal.Length, fill=Species)) +
  geom_violin() +
  scale_fill_nature(palette = "Antartica2")

Exggplot2

Contrinute

If you want to contribute to the design of new color palettes based on natural areas and natural parks, you can suggest a new color combination via a pull request:

  1. Fork the repository into your GitHub account.
  2. Clone the forked repository to local machine, make the changes.
  3. Commit and push the changes to GitHub. Create a pull request.


AlbertMorera/naturalette documentation built on Jan. 20, 2022, 3:40 p.m.