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
Currently, the package is only able to be downloaded through github
install.packages("devtools") devtools::install_github("AlbertMorera/naturalette")
This palette is inspired by the colors of the hot spring of the Yellostone National Park (such as Grand Prismatic Spring.
print_palette("Yellowstone")
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")
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")
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")
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")
ggplot(data=iris, aes(x=Species, y=Sepal.Width, color=Sepal.Width)) + geom_point(size=3) + scale_color_nature(palette = "Flowers", discrete=F)
ggplot(data=iris, aes(x=Sepal.Length, y=Sepal.Width, color=Species)) + geom_point(size=2) + scale_color_nature(palette = "Yellowstone")
ggplot(data=iris, aes(x=Species, y=Petal.Length, fill=Species)) + geom_violin() + scale_fill_nature(palette = "Antartica2")
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:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.