Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nvietto/Rdune
Creates color palettes inspired by 'Dune'
https://github.com/nvietto/Rdune
Last synced: 3 days ago
JSON representation
Creates color palettes inspired by 'Dune'
- Host: GitHub
- URL: https://github.com/nvietto/Rdune
- Owner: nvietto
- License: other
- Created: 2024-06-28T23:44:39.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-06T15:56:10.000Z (2 months ago)
- Last Synced: 2024-11-07T21:11:42.555Z (9 days ago)
- Language: R
- Homepage: https://nvietto.github.io/Rdune/
- Size: 8.7 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - nvietto/Rdune - Creates color palettes inspired by 'Dune' (R)
README
---
output: github_document
---```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# Rdune
[![R-CMD-check](https://github.com/nvietto/Rdune/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/nvietto/Rdune/actions/workflows/R-CMD-check.yaml)
[![CRAN status](https://www.r-pkg.org/badges/version/Rdune)](https://CRAN.R-project.org/package=Rdune)
[![](https://cranlogs.r-pkg.org/badges/grand-total/Rdune)](https://cran.r-project.org/package=Rdune)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}](https://github.com/nrennie/PrettyCols), [{wesanderson}](https://github.com/karthik/wesanderson), [{MetBrewer}](https://github.com/BlakeRMills/MetBrewer), [{PNWColors}](https://github.com/jakelawlor/PNWColors) packages.
Colors were selected using [{eyedroppeR}](https://github.com/doehm/eyedroppeR).
See https://nvietto.github.io/Rdune/ for full documentation.
## Installation
{Rdune} is available on CRAN. Install using:
``` r
install.packages("Rdune")
```Or you can install the development version of Rdune from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("nvietto/Rdune")
```## How to use
```{r example}
library(Rdune)# See all palettes
names(dune_palettes)
```## View palette
```{r, fig.height = 2}
pal <- dune_palette("atreides")print.palette(pal)
```## Examples
### "May thy knife chip and shatter"
```{r, example1, fig.height=3}
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
```{r, example2, fig.height=3}
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