The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
Usage | Release | Development |
---|---|---|
R color palettes inspired by video games.
[!NOTE] These color palettes may not be color blind friendly. If accessibility is a priority, I recommend either using the virdis package or checking your plots before sharing using tools which simulate color blindness (such as coblis).
Table of Contents
gameR is on CRAN! Install the stable version of gameR with:
install.packages("gameR")
You can install the development version of gameR, which may contain additional palettes, from r-universe with
# Enable universe(s) by nathansam
options(repos = c(
nathansam = "https://nathansam.r-universe.dev",
CRAN = "https://cloud.r-project.org"
))
install.packages("gameR")
library(gameR)
library(ggplot2)
gameR provides either discrete color palettes or continuous palettes
generated by interpolating a discrete palette. Discrete palettes and
continuous palettes are provided via the gameR_cols()
and
gameR_cont()
functions respectively. For a full list of the
palettes provided by gameR
, call one of these functions
without any arguments.
gameR_cols()
#> [1] "banjo" "blocks" "border" "cowboy" "cups"
#> [6] "cyberpunk" "fallout" "frisk" "gris" "human_rev"
#> [11] "kirby" "new_horizon" "ocarina" "okami" "p3r"
#> [16] "p4g" "papyrus" "pman" "radio" "rayman"
#> [21] "sans" "sonic" "spirit" "splat" "superbros"
#> [26] "wow"
The following palettes are ordered alphabetically by the name of the game which inspired the palette.
gameR_cols("new_horizon")
gameR_cols("banjo")
gameR_cols("border")
gameR_cols("cups")
gameR_cols("cyberpunk")
gameR_cols("human_rev")
gameR_cols("fallout")
gameR_cols("gris")
gameR_cols("radio")
gameR_cols("kirby")
gameR_cols("ocarina")
gameR_cols("okami")
gameR_cols("pman")
gameR_cols("p3r")
gameR_cols("p4g")
gameR_cols("rayman")
gameR_cols("cowboy")
gameR_cols("sonic")
gameR_cols("spirit")
gameR_cols("splat")
gameR_cols("superbros")
gameR_cols("blocks")
gameR_cols("frisk")
gameR_cols("papyrus")
gameR_cols("sans")
gameR_cols("wow")
Contributions via pull requests are welcome! I would love to have as many video games represented as possible. With that said, there are two requirements I ask of any contributed palettes:
Adding a new palette is as simple adding a new element to the
gameR_colors
list in R/palettes.R,
and calling devtools::document()
from R to update the
package documentation.
The README is generated by README.Rmd. Please update this file with the palettes you are contributing (the palettes are in alphabetical order), and knit the file before committing and pushing your contributions.
If you are contributing palette(s), I would love for your contribution to be recognized. Please feel free to add yourself as a contributor (role = “ctb”) in the DESCRIPTION file.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.