'Creates Color Palettes Inspired by Dune'

Enables the use of color palettes inspired by the 'Dune' movies. These palettes are compatible with 'ggplot2'. See Wickham (2016) for more details on 'ggplot2'.


Rdune

CRANstatus

The {Rdune} package offers a collection of color palettes inspired by ‘Dune’, designed for use in data visualizations and graphics with {ggplot2}.

The structure of the code and creative inspiration were drawn from the {PrettyCols}, {wesanderson}, {MetBrewer}, {PNWColors} packages.

Colors were selected using {eyedroppeR}.

Installation

{Rdune} is available on CRAN. Install using:

install.packages("Rdune")

Or you can install the development version of Rdune from GitHub with:

# install.packages("devtools")
devtools::install_github("nvietto/Rdune")

How to use

library(Rdune)

# See all palettes
names(dune_palettes)
#>  [1] "arrakis"                   "atreides"                 
#>  [3] "atreides2"                 "atreides3"                
#>  [5] "atreides4"                 "bene_gesserit"            
#>  [7] "corrino"                   "fermen"                   
#>  [9] "fermen2"                   "harkonnen"                
#> [11] "harkonnen2"                "harkonnen3"               
#> [13] "harkonnen4"                "maythyknifechipandshatter"
#> [15] "sandworm"

View palette

pal <- dune_palette("atreides")

print.palette(pal)

Examples

“May thy knife chip and shatter”

library(ggplot2)

ggplot(
  data = iris,
  mapping = aes(x = Sepal.Width, y = Sepal.Length, color = Species)
) +
  geom_point(size = 2) +
  scale_color_dune_d(name = "maythyknifechipandshatter")

House Atreides

library(ggplot2)

ggplot(
  data.frame(x = rnorm(1000), y = rnorm(1000)),
  aes(x = x, y = y)
) +
  geom_hex() +
  theme_minimal() +
  scale_fill_dune_c(name = "atreides3") +
  labs(x = "X-axis", y = "Y-axis", fill = "Legend")

Palettes

Arrakis

House Atreides

Bene Gesserit

House Corrino

Fremen

House Harkonnen

“May thy knife chip and shatter”

Sandworm

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("Rdune")

1.1.1 by Nicholas Vietto, 2 years ago


https://github.com/nvietto/Rdune, https://nvietto.github.io/Rdune/


Report a bug at https://github.com/nvietto/Rdune/issues


Browse source code at https://github.com/cran/Rdune


Authors: Nicholas Vietto [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports ggplot2, graphics, grDevices

Suggests knitr, rmarkdown, testthat


See at CRAN