All Projects β†’ aljrico β†’ gameofthrones

aljrico / gameofthrones

Licence: other
🎨 Game of Thrones inspired palette for R

Programming Languages

HTML
75241 projects
r
7636 projects

Projects that are alternatives of or similar to gameofthrones

Ggthemes
Additional themes, scales, and geoms for ggplot2
Stars: ✭ 1,107 (+1504.35%)
Mutual labels:  ggplot2, plot, data-visualisation
Vapeplot
matplotlib extension for vaporwave aesthetics
Stars: ✭ 483 (+600%)
Mutual labels:  palette, plot, color-palette
hcv-color
🌈 Color model HCV/HCG is an alternative to HSV and HSL, derived by Munsell color system, usable for Dark and Light themes... 🌈
Stars: ✭ 44 (-36.23%)
Mutual labels:  palette, color-palette
Nord
An arctic, north-bluish color palette.
Stars: ✭ 4,816 (+6879.71%)
Mutual labels:  palette, color-palette
Material Design Colors
Palette for Android Material Design colors.
Stars: ✭ 25 (-63.77%)
Mutual labels:  palette, color-palette
javascript-color-gradient
Lightweight JavaScript library, used to generate an array of color gradients, between start and finish colors.
Stars: ✭ 54 (-21.74%)
Mutual labels:  palette, color-palette
Dmarman.github.io
Tailwind Ink is an AI palette generator trained with the Tailwindcss colors.
Stars: ✭ 254 (+268.12%)
Mutual labels:  palette, color-palette
R Color Palettes
Comprehensive list of color palettes available in r β€οΈπŸ§‘πŸ’›πŸ’šπŸ’™πŸ’œ
Stars: ✭ 708 (+926.09%)
Mutual labels:  palette, color-palette
Gglabeller
Shiny gadget for labeling points on ggplot
Stars: ✭ 161 (+133.33%)
Mutual labels:  ggplot2, plot
vscode-color
Helper with GUI to generate color codes such as CSS color notations.
Stars: ✭ 88 (+27.54%)
Mutual labels:  palette, color-palette
Vaporwave
πŸ“ΌπŸ‘ΎπŸ•ΉVaporwave themes and color palettes for ggplot2πŸ’ΎπŸ‘¨β€πŸŽ€πŸ“Ί
Stars: ✭ 215 (+211.59%)
Mutual labels:  palette, ggplot2
Md Color Picker
Angular-Material based color picker
Stars: ✭ 253 (+266.67%)
Mutual labels:  palette, color-palette
pantone-colors
Hex values of all 2310 Pantone colors
Stars: ✭ 147 (+113.04%)
Mutual labels:  palette, color-palette
Ghibli
Studio Ghibli colour palettes
Stars: ✭ 227 (+228.99%)
Mutual labels:  ggplot2, color-palette
Colorpicker
jQuery UI widget for color picking (similar to the one in Microsoft Office 2010).
Stars: ✭ 271 (+292.75%)
Mutual labels:  palette, color-palette
Treemapify
🌳 Draw treemaps in ggplot2
Stars: ✭ 186 (+169.57%)
Mutual labels:  ggplot2, data-visualisation
Ciapre.tmTheme
Ciapre - an easy-on-the-eyes Sublime Text/TextMate color scheme.
Stars: ✭ 63 (-8.7%)
Mutual labels:  palette, color-palette
Ggplotnim
A port of ggplot2 for Nim
Stars: ✭ 95 (+37.68%)
Mutual labels:  ggplot2, plot
Colourlovers
🎨 πŸ“¦ R Client for the COLOURlovers API
Stars: ✭ 92 (+33.33%)
Mutual labels:  palette, color-palette
Krypton-Toolkit-Suite-Extended-NET-5.470
An extension to the Krypton Toolkit suite of controls for .NET framework 4.7
Stars: ✭ 51 (-26.09%)
Mutual labels:  palette, colours

gameofthrones

cran version rstudio mirror per-month downloads rstudio mirror total downloads

This package provides a round of palettes inspired by the Game of Thrones TV show.

At its first version, it simply contains the palettes of some of the houses of Westeros. They have been chosen manually, taking into account its consistency with all the existing branding of the franchise, but its suitability for data visualisation.

Information visualization is just a language with everything to be discovered.

A colour palette should not only be beautiful, but suitable for portraying and highlighting data. The colours of this palette has been chose trying to to find this balance between suitability for plotting and relatability to the world of A Song of Ice and Fire.

Installation

Just copy and execute this bunch of code and you’ll have the last version of the package installed:

devtools::install_github("aljrico/gameofthrones")

Or just use the more stable version on the CRAN:

install.packages("gameofthrones")

And you can now use it:

library(gameofthrones)

Usage

The default colour scale of the package is the one of the house Targaryen. If you prefer to choose another one, you’ll need to specify which house you want the palette from.

Let’s say that you want a palette made from the house Targaryen.

pal <- got(250, option = "Targaryen")
image(volcano, col = pal)

Or that you want burn some plots down using wildfire.

pal <- got(250, option = "Wildfire")
image(volcano, col = pal)

ggplot2

Of course, this package has specific functions to behave seamlessly with the best data visiualisation library available. The package contains colour scale functions for ggplot2 plots: scale_color_got() and scale_fill_got().

Here is a made up example using the colours from the house of Martell,

library(ggplot2)
ggplot(data.frame(x = rnorm(1e4), y = rnorm(1e4)), aes(x = x, y = y)) +
  geom_hex() + 
    coord_fixed() +
  scale_fill_got(option = "Martell") + 
    theme_bw()

and Baratheon

ggplot(data.frame(x = rnorm(1e4), y = rnorm(1e4)), aes(x = x, y = y)) +
  geom_hex() + 
    coord_fixed() +
  scale_fill_got(option = "Baratheon") + 
    theme_bw()

You can also use it to create this cloropeth of the U.S Unemployment:

But what if you want discrete scales? These functions also can be used for discrete scales with the argument discrete = TRUE. This argument, when TRUE, sets a finite number of sufficiently spaced colours within the selected palette to plot your data. You can also bypass it by calling the function with a _d() at the end. So scale_fill_got(discrete = TRUE) becomes scale_fill_got_d(). Much easier, isn't it?

library(gridExtra)

gg1 <- ggplot(diamonds, aes(factor(color), fill=factor(cut))) +  
    geom_bar(colour = "black") +
  scale_fill_got(discrete = TRUE, option = "Margaery") +
    ggtitle("Lady Margaery") +
    theme_minimal()

gg2 <- ggplot(diamonds, aes(factor(color), fill=factor(cut))) +  
    geom_bar(colour = "black") +
  scale_fill_got_d(option = "Daenerys", direction = - 1) +
    ggtitle("Daenerys Stormborn") +
    theme_minimal()

grid.arrange(gg1,gg2)

Note that you can also play with the direction of the colour map. Either the default direction = 1 or the opposite direction = -1.

See how diferently you can highlight the density distribution of restaurans in southern France.

Just make sure you try all the options.

gg1 <- ggplot(diamonds, aes(carat, fill = cut)) +
  geom_density(position = "stack") +
    scale_fill_got(discrete = TRUE, option = "Stark2")

gg2 <- ggplot(mpg, aes(class)) +
    geom_bar(aes(fill = drv), position = position_stack(reverse = TRUE), colour = "black") +
 coord_flip() +
    scale_fill_got(discrete = TRUE, option = "Daenerys") +
 theme(legend.position = "top") +
    ylab("") +
    xlab("Class")

grid.arrange(gg1,gg2)

Palettes

option = "Arya"


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].