jrcalabrese / joycon

An R package of color palettes inspired by Nintendo games.

Home Page:https://github.com/jrcalabrese/joycon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

joycon

Color palettes inspired by Nintendo.

Install package

devtools::install_github("jrcalabrese/joycon")
library(joycon)

Introduction

The joycon package provides over 50 color palettes inspired by Nintendo video games, including Super Mario, the Legend of Zelda, and Animal Crossing.

I included a bunch of games, but if I missed one, feel free to DM me on Twitter @jrosecalabrese and I'll try to add it.

Hexsticker created with Emi Tanaka's PowerPoint template.

Color palettes

joycon_pal("NewHorizons")

joycon_pal("Hyrule")

joycon_pal("Splatoon")
joycon_pal("WiiFit")
joycon_pal("Nintendogs")

joycon_pal("Brewster")
joycon_pal("GreatAceAttorney")
joycon_pal("SalmonRun")

Example visualizations

library(ggplot2)
ggplot(diamonds, aes(x = cut, y = price, fill = cut)) + 
  geom_boxplot() + 
  scale_y_log10() + 
  scale_fill_manual(values = joycon_pal("Isabelle")) +
  ggtitle("Isabelle palette")

ggplot(diamonds, aes(x = cut, fill = cut)) + 
  geom_bar(stat = "count") +
  scale_fill_manual(values = joycon_pal(name = "SkywardSword") +
  ggtitle("Skyward Sword palette")

mtcars %>%
  filter(carb < 7) %>%
  ggplot(aes(x = gear, y = qsec, fill = as.factor(carb))) +
  geom_bar(stat = "identity", position = "dodge") + 
  scale_fill_manual(values = joycon_pal("Earthbound")) +
  ggtitle("Earthbound palette")

ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width))+
  geom_point(aes(color = Sepal.Length), size = 5) + 
  scale_color_gradientn(colors = joycon_pal("AceAttorney", type = "continuous")) +
  ggtitle("Ace Attorney palette") +
  labs(caption = "(Yes, I know Ace Attorney is developed by Capcom)")

About

An R package of color palettes inspired by Nintendo games.

https://github.com/jrcalabrese/joycon

License:Other


Languages

Language:R 100.0%