Package gameofthrones

Similar documents
Package harrypotter. September 3, 2018

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package ggextra. April 4, 2018

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package datasets.load

Package spark. July 21, 2017

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package palettetown. April 7, 2016

Package autocogs. September 22, Title Automatic Cognostic Summaries Version 0.1.1

Package messaging. May 27, 2018

Package nima. May 23, 2018

Package repec. August 31, 2018

Package bisect. April 16, 2018

Package swatches. December 21, 2017

Package fastdummies. January 8, 2018

Package docxtools. July 6, 2018

Package kdtools. April 26, 2018

Package gtrendsr. October 19, 2017

Package ggdark. R topics documented: January 11, Type Package Title Dark Mode for 'ggplot2' Themes Version Author Neal Grantham

Package colourpicker

Package WordR. September 7, 2017

Package validara. October 19, 2017

Package tidyimpute. March 5, 2018

Package humanize. R topics documented: April 4, Version Title Create Values for Human Consumption

Package farver. November 20, 2018

Package spelling. December 18, 2017

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package available. November 17, 2017

Package ECctmc. May 1, 2018

Package crochet. January 8, 2018

Package kirby21.base

Package IATScore. January 10, 2018

Package dbx. July 5, 2018

Package gtrendsr. August 4, 2018

Package vinereg. August 10, 2018

Package projector. February 27, 2018

Package jpmesh. December 4, 2017

Package deductive. June 2, 2017

Package Mondrian. R topics documented: March 4, Type Package

Package vip. June 15, 2018

Package sankey. R topics documented: October 22, 2017

Package states. May 4, 2018

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package SEMrushR. November 3, 2018

Package slickr. March 6, 2018

Package sure. September 19, 2017

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package rollply. R topics documented: August 29, Title Moving-Window Add-on for 'plyr' Version 0.5.0

Package reval. May 26, 2015

Package semver. January 6, 2017

Package mdftracks. February 6, 2017

Package wrswor. R topics documented: February 2, Type Package

Package crossword.r. January 19, 2018

Package rtext. January 23, 2019

Package regexselect. R topics documented: September 22, Version Date Title Regular Expressions in 'shiny' Select Lists

Package strat. November 23, 2016

Package qualmap. R topics documented: September 12, Type Package

Package sigmanet. April 23, 2018

Package sfdct. August 29, 2017

Package canvasxpress

Package censusr. R topics documented: June 14, Type Package Title Collect Data from the Census API Version 0.0.

Package autoshiny. June 25, 2018

Package rsppfp. November 20, 2018

Package websearchr. R topics documented: October 23, 2018

Package geogrid. August 19, 2018

Package comparedf. February 11, 2019

Package dynsim. R topics documented: August 29, 2016

Package ggrepel. September 30, 2017

Package geniusr. December 6, 2017

Package memery. February 13, 2018

Package splithalf. March 17, 2018

Package balance. October 12, 2018

Package oec. R topics documented: May 11, Type Package

Package knitrprogressbar

Package queuecomputer

Package pinyin. October 17, 2018

Package fitbitscraper

Package labelvector. July 28, 2018

Package facerec. May 14, 2018

Package internetarchive

Package tiler. June 9, 2018

Package pairsd3. R topics documented: August 29, Title D3 Scatterplot Matrices Version 0.1.0

Package meme. December 6, 2017

Package meme. November 2, 2017

Package profvis. R topics documented:

Package robotstxt. November 12, 2017

Package ggseas. June 12, 2018

Package jstree. October 24, 2017

Package coga. May 8, 2018

R topics documented: 2 clone

Package sessioninfo. June 21, 2017

Package statsdk. September 30, 2017

Package TrafficBDE. March 1, 2018

Package ecoseries. R topics documented: September 27, 2017

Package skynet. December 12, 2018

Package combiter. December 4, 2017

Package calpassapi. August 25, 2018

Package widyr. August 14, 2017

Package readobj. November 2, 2017

Transcription:

Package gameofthrones December 31, 2018 Type Package Title Palettes Inspired in the TV Show ``Game of Thrones'' Version 1.0.0 Maintainer Alejandro Jimenez Rico <aljrico@gmail.com> Description Implementation of the characteristic palettes from the TV show 'Game of Thrones'. License MIT + file LICENSE Encoding UTF-8 LazyData TRUE Depends R (>= 2.10) Suggests hexbin (>= 1.27.0), testthat URL https://github.com/aljrico/gameofthrones BugReports https://github.com/aljrico/gameofthrones/issues Imports ggplot2 (>= 1.0.1), gridextra, MASS RoxygenNote 6.1.1 NeedsCompilation no Author Alejandro Jimenez Rico [aut, cre] Repository CRAN Date/Publication 2018-12-30 23:30:06 UTC R topics documented: got.map........................................... 2 gotmap........................................... 2 scale_color_got....................................... 4 Index 6 1

2 gotmap got.map Game of Thrones colour map Description A dataset containing the colour palettes from the TV show Game of Thrones. Usage got.map Format A data frame containing all the colours used in the palette: V1: Red value V2: Green value V3: Blue value option: Refers to the houses of Westeros, or other colourmaps. It is intended to be a general option for choosing the specific colour palette. gotmap Game of Thrones Colour Map. Description This function creates a vector of n equally spaced colors along the got colour map. Usage gotmap(n = 256, alpha = 1, begin = 0, end = 1, direction = 1, got(n, alpha = 1, begin = 0, end = 1, direction = 1, got_pal(alpha = 1, begin = 0, end = 1, direction = 1, gameofthrones(n, alpha = 1, begin = 0, end = 1, direction = 1,

gotmap 3 Arguments n alpha begin end direction option The number of colors ( 1) to be in the palette. The alpha transparency, a number in [0,1], see argument alpha in hsv. The (corrected) hue in [0,1] at which the got colormap begins. The (corrected) hue in [0,1] at which the got colormap ends. Sets the order of colors in the scale. If 1, the default, colors are ordered from darkest to lightest. If -1, the order of colors is reversed. A character string indicating the colourmap to use. It is not case-sensible Details Here are the color scales: Semi-transparent colors (0 < alpha < 1) are supported only on some devices: see rgb. Value got returns a character vector, cv, of color hex codes. This can be used either to create a userdefined color palette for subsequent graphics by palette(cv), a col = specification in graphics functions or in par. gotmap returns a n lines data frame containing the red (R), green (G), blue (B) and alpha (alpha) channels of n equally spaced colors along the Game of Thrones colour map. n = 256 by default. Author(s) Alejandro Jiménez Rico <aljrico@gmail.com>, Personal Blog

4 scale_color_got Examples library(ggplot2) library(hexbin) dat <- data.frame(x = rnorm(1e4), y = rnorm(1e4)) ggplot(dat, aes(x = x, y = y)) + geom_hex() + coord_fixed() + scale_fill_gradientn(colours = got(128, ) + theme_minimal() pal <- got(256, option = "Wildfire") image(volcano, col = pal) scale_color_got Game of Thrones colour scales Description Usage Uses the Game of Thrones color scale. scale_color_got(..., alpha = 1, begin = 0, end = 1, direction = 1, discrete = FALSE, scale_colour_got(..., alpha = 1, begin = 0, end = 1, direction = 1, discrete = FALSE, scale_colour_got_d(..., alpha = 1, begin = 0, end = 1, direction = 1, option, aesthetics = "colour") scale_color_got_d(..., alpha = 1, begin = 0, end = 1, direction = 1, option, aesthetics = "colour") scale_fill_got(..., alpha = 1, begin = 0, end = 1, direction = 1, discrete = FALSE, scale_fill_got_d(..., alpha = 1, begin = 0, end = 1, direction = 1, option, aesthetics = "fill") Arguments... parameters to discrete_scale or scale_fill_gradientn alpha begin pass through parameter to got The (corrected) hue in [0,1] at which the got colormap begins.

scale_color_got 5 end direction discrete option aesthetics The (corrected) hue in [0,1] at which the got colormap ends. Sets the order of colors in the scale. If 1, the default, colors are as output by got_pal. If -1, the order of colors is reversed. generate a discrete palette? (default: FALSE - generate continuous palette) A character string indicating the colourmap to use. Character string or vector of character strings listing the name(s) of the aesthetic(s) that this scale works with. This can be useful, for example, to apply colour settings to the colour and fill aesthetics at the same time, via aesthetics = c("colour", "fill"). Parameter inherited from ggplot2. Details For discrete == FALSE (the default) all other arguments are as to scale_fill_gradientn or scale_color_gradientn. Otherwise the function will return a discrete_scale with the plot-computed number of colors. Author(s) Alejandro Jiménez Rico <aljrico@gmail.com> Examples library(ggplot2) ggplot(mtcars, aes(factor(cyl), fill=factor(vs))) + geom_bar() + scale_fill_got(discrete = TRUE, option = "Daenerys") ggplot(mtcars, aes(factor(gear), fill=factor(carb))) + geom_bar() + scale_fill_got(discrete = TRUE, option = "Tully") ggplot(mtcars, aes(x = mpg, y = disp, colour = hp)) + geom_point(size = 2) + scale_colour_got(option = "Lannister")

Index Topic datasets got.map, 2 gameofthrones (gotmap), 2 got (gotmap), 2 got.map, 2 got_pal (gotmap), 2 gotmap, 2 hsv, 3 rgb, 3 scale_color_got, 4 scale_color_got_d (scale_color_got), 4 scale_color_gradientn, 5 scale_colour_got (scale_color_got), 4 scale_colour_got_d (scale_color_got), 4 scale_fill_got (scale_color_got), 4 scale_fill_got_d (scale_color_got), 4 scale_fill_gradientn, 5 6