Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 4 committers (25.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.4%) to scientific vocabulary
Keywords
gaming
ggplot2
palettes
r
r-package
rstats
Keywords from Contributors
mesh
interactive
Last synced: 4 months ago
·
JSON representation
·
Repository
R colour palettes inspired by video games
Basic Info
- Host: GitHub
- Owner: nathansam
- License: gpl-3.0
- Language: R
- Default Branch: main
- Homepage: http://www.constantine-cooke.com/gameR/
- Size: 10.1 MB
Statistics
- Stars: 7
- Watchers: 1
- Forks: 4
- Open Issues: 2
- Releases: 6
Topics
gaming
ggplot2
palettes
r
r-package
rstats
Created almost 4 years ago
· Last pushed 4 months ago
Metadata Files
Readme
Changelog
Contributing
License
Citation
Codemeta
README.Rmd
---
output: github_document
fig_height: 1
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
dev.args = list(png = list(type = "cairo"))
)
```
# gameR
| Usage | Release | Development |
|----------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [](https://opensource.org/license/gpl-3-0) | [](https://cran.r-project.org/package=gameR) | [](https://github.com/nathansam/gameR/actions) |
|  | [](https://nathansam.r-universe.dev/builds) | [](https://app.codecov.io/gh/nathansam/gameR) |
| [](https://r-pkg.org/pkg/gameR) | | [](https://www.repostatus.org/#active) |
| | | [](https://style.tidyverse.org) |
R color palettes inspired by video games.
```{=html}
> [!NOTE]
> These color palettes may *not* be color blind friendly. If
accessibility is a priority, I recommend either using the
[virdis package](https://CRAN.R-project.org/package=viridis) or checking your
plots before sharing using tools which simulate color blindness (such as
[coblis](https://www.color-blindness.com/coblis-color-blindness-simulator/)).
```
**Table of Contents**
- [Installation](#installation)
- [Getting started](#getting-started)
- [Palettes](#palettes)
- [Contributing new palettes](#contributing-new-palettes)
## Installation
gameR is on CRAN! Install the stable version of gameR with:
```r
install.packages("gameR")
```
You can install the development version of gameR, which may contain additional
palettes, from [r-universe](https://r-universe.dev/search) with
```{R dev, eval = FALSE}
# Enable universe(s) by nathansam
options(repos = c(
nathansam = "https://nathansam.r-universe.dev",
CRAN = "https://cloud.r-project.org"
))
install.packages("gameR")
```
## Getting started
```{R}
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.
```{R}
gameR_cols()
```
## Palettes
```{R, echo = FALSE}
plotCol <- function(palette) {
colors <- gameR_cols(palette)
x <- 1:length(colors)
test <- data.frame(x = x, y = 1, colors = as.factor(x))
p <- ggplot(data = test, aes(x = x, y = y, fill = colors)) +
geom_tile(color = "black", linewidth = 0.3) +
scale_fill_manual(values = colors) +
theme_void() +
theme(
legend.position = "none",
plot.background = element_rect(fill = rgb(60, 60, 60,
maxColorValue = 255
))
)
print(p)
}
```
The following palettes are ordered alphabetically by the name of the game which
inspired the palette.
### Animal Crossing: New Horizons
``` r
gameR_cols("new_horizon")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("new_horizon")
```
### Banjo-Kazooie
``` r
gameR_cols("banjo")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("banjo")
```
### Borderlands
``` r
gameR_cols("border")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("border")
```
### Cuphead
``` r
gameR_cols("cups")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("cups")
```
### Cyberpunk
``` r
gameR_cols("cyberpunk")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("cyberpunk")
```
### Deus Ex: Human Revolution
``` r
gameR_cols("human_rev")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("human_rev")
```
### Fallout
``` r
gameR_cols("fallout")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("fallout")
```
### Gris
``` r
gameR_cols("gris")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("gris")
```
### Jet Set Radio
``` r
gameR_cols("radio")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("radio")
```
### Kirby
``` r
gameR_cols("kirby")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("kirby")
```
### Legend of Zelda: Ocarina of Time
``` r
gameR_cols("ocarina")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("ocarina")
```
### Okami
``` r
gameR_cols("okami")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("okami")
```
### Pac-Man
``` r
gameR_cols("pman")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("pman")
```
### Persona 3 Reload
``` r
gameR_cols("p3r")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("p3r")
```
### Persona 4 Golden
``` r
gameR_cols("p4g")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("p4g")
```
### Rayman
``` r
gameR_cols("rayman")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("rayman")
```
### Red Dead Redemption II
``` r
gameR_cols("cowboy")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("cowboy")
```
### Sonic the Hedgehog
``` r
gameR_cols("sonic")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("sonic")
```
### Spiritfarer
``` r
gameR_cols("spirit")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("spirit")
```
### Splatoon
``` r
gameR_cols("splat")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("splat")
```
### Super Mario Bros
``` r
gameR_cols("superbros")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("superbros")
```
### Tetris
``` r
gameR_cols("blocks")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("blocks")
```
### Undertale - Frisk
``` r
gameR_cols("frisk")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("frisk")
```
### Undertale - Papyrus
``` r
gameR_cols("papyrus")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("papyrus")
```
### Undertale - Sans
``` r
gameR_cols("sans")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("sans")
```
### World of Warcraft
``` r
gameR_cols("wow")
```
```{R, fig.height = 1, echo = FALSE}
plotCol("wow")
```
## Contributing new palettes
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:
1. The palette must be at least somewhat distinctive. There are many popular and
beloved games, but if the palette suggestion does not evoke the video game
that inspired it, it probably should not be contributed.
2. Please avoid trademarked names for palette names. I am not entirely sure how
far the [CRAN policy](https://cran.r-project.org/web/packages/policies.html)
extends when it comes to trademarked names, but I would rather not risk
running afoul of CRAN policy.
### Adding a New Palette to the gameR Palette List
Adding a new palette is as simple adding a new element to the `gameR_colors`
list in
[R/palettes.R](https://github.com/nathansam/gameR/blob/main/R/palettes.R),
and calling `devtools::document()` from R to update the package documentation.
### Updating the README
The README is generated by
[README.Rmd](https://github.com/nathansam/gameR/blob/main/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.
### Credit
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](https://github.com/nathansam/gameR/blob/main/DESCRIPTION)
file.
Owner
- Name: Nathan Constantine-Cooke
- Login: nathansam
- Kind: user
- Location: Edinburgh
- Company: University of Edinburgh
- Website: www.constantine-cooke.com
- Twitter: IBDNathan
- Repositories: 25
- Profile: https://github.com/nathansam
Postdoctoral researcher at the University of Edinburgh and member of the @VallejosGroup and Lees group. Longitudinal modelling of Inflammatory Bowel Disease.
Citation (CITATION.cff)
# --------------------------------------------
# CITATION file created with {cffr} R package
# See also: https://docs.ropensci.org/cffr/
# --------------------------------------------
cff-version: 1.2.0
message: 'To cite package "gameR" in publications use:'
type: software
license: GPL-3.0-or-later
title: 'gameR: Color Palettes Inspired by Video Games'
version: 0.0.7
doi: 10.32614/CRAN.package.gameR
identifiers:
- type: url
value: https://github.com/nathansam/gameR/
abstract: Palettes based on video games.
authors:
- family-names: Constantine-Cooke
given-names: Nathan
email: nathan.constantine-cooke@ed.ac.uk
orcid: https://orcid.org/0000-0002-4437-8713
repository: https://CRAN.R-project.org/package=gameR
repository-code: https://github.com/nathansam/gameR
url: https://www.constantine-cooke.com/gameR/
contact:
- family-names: Constantine-Cooke
given-names: Nathan
email: nathan.constantine-cooke@ed.ac.uk
orcid: https://orcid.org/0000-0002-4437-8713
keywords:
- gaming
- ggplot2
- palettes
- r
- r-package
- rstats
references:
- type: software
title: testthat
abstract: 'testthat: Unit Testing for R'
notes: Suggests
url: https://testthat.r-lib.org
repository: https://CRAN.R-project.org/package=testthat
authors:
- family-names: Wickham
given-names: Hadley
email: hadley@posit.co
year: '2024'
doi: 10.32614/CRAN.package.testthat
version: '>= 3.0.0'
- type: software
title: ggplot2
abstract: 'ggplot2: Create Elegant Data Visualisations Using the Grammar of Graphics'
notes: Suggests
url: https://ggplot2.tidyverse.org
repository: https://CRAN.R-project.org/package=ggplot2
authors:
- family-names: Wickham
given-names: Hadley
email: hadley@posit.co
orcid: https://orcid.org/0000-0003-4757-117X
- family-names: Chang
given-names: Winston
orcid: https://orcid.org/0000-0002-1576-2126
- family-names: Henry
given-names: Lionel
- family-names: Pedersen
given-names: Thomas Lin
email: thomas.pedersen@posit.co
orcid: https://orcid.org/0000-0002-5147-4711
- family-names: Takahashi
given-names: Kohske
- family-names: Wilke
given-names: Claus
orcid: https://orcid.org/0000-0002-7470-9261
- family-names: Woo
given-names: Kara
orcid: https://orcid.org/0000-0002-5125-4188
- family-names: Yutani
given-names: Hiroaki
orcid: https://orcid.org/0000-0002-3385-7233
- family-names: Dunnington
given-names: Dewey
orcid: https://orcid.org/0000-0002-9415-4582
- family-names: Brand
given-names: Teun
name-particle: van den
orcid: https://orcid.org/0000-0002-9335-7468
year: '2024'
doi: 10.32614/CRAN.package.ggplot2
- type: software
title: magrittr
abstract: 'magrittr: A Forward-Pipe Operator for R'
notes: Suggests
url: https://magrittr.tidyverse.org
repository: https://CRAN.R-project.org/package=magrittr
authors:
- family-names: Bache
given-names: Stefan Milton
email: stefan@stefanbache.dk
- family-names: Wickham
given-names: Hadley
email: hadley@rstudio.com
year: '2024'
doi: 10.32614/CRAN.package.magrittr
- type: software
title: palmerpenguins
abstract: 'palmerpenguins: Palmer Archipelago (Antarctica) Penguin Data'
notes: Suggests
url: https://allisonhorst.github.io/palmerpenguins/
repository: https://CRAN.R-project.org/package=palmerpenguins
authors:
- family-names: Horst
given-names: Allison
email: ahorst@ucsb.edu
orcid: https://orcid.org/0000-0002-6047-5564
- family-names: Hill
given-names: Alison
email: apresstats@gmail.com
orcid: https://orcid.org/0000-0002-8082-1890
- family-names: Gorman
given-names: Kristen
email: kbgorman@alaska.edu
orcid: https://orcid.org/0000-0002-0258-9264
year: '2024'
doi: 10.32614/CRAN.package.palmerpenguins
- type: software
title: knitr
abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R'
notes: Suggests
url: https://yihui.org/knitr/
repository: https://CRAN.R-project.org/package=knitr
authors:
- family-names: Xie
given-names: Yihui
email: xie@yihui.name
orcid: https://orcid.org/0000-0003-0645-5666
year: '2024'
doi: 10.32614/CRAN.package.knitr
- type: software
title: rmarkdown
abstract: 'rmarkdown: Dynamic Documents for R'
notes: Suggests
url: https://pkgs.rstudio.com/rmarkdown/
repository: https://CRAN.R-project.org/package=rmarkdown
authors:
- family-names: Allaire
given-names: JJ
email: jj@posit.co
- family-names: Xie
given-names: Yihui
email: xie@yihui.name
orcid: https://orcid.org/0000-0003-0645-5666
- family-names: Dervieux
given-names: Christophe
email: cderv@posit.co
orcid: https://orcid.org/0000-0003-4474-2498
- family-names: McPherson
given-names: Jonathan
email: jonathan@posit.co
- family-names: Luraschi
given-names: Javier
- family-names: Ushey
given-names: Kevin
email: kevin@posit.co
- family-names: Atkins
given-names: Aron
email: aron@posit.co
- family-names: Wickham
given-names: Hadley
email: hadley@posit.co
- family-names: Cheng
given-names: Joe
email: joe@posit.co
- family-names: Chang
given-names: Winston
email: winston@posit.co
- family-names: Iannone
given-names: Richard
email: rich@posit.co
orcid: https://orcid.org/0000-0003-3925-190X
year: '2024'
doi: 10.32614/CRAN.package.rmarkdown
- type: software
title: spelling
abstract: 'spelling: Tools for Spell Checking in R'
notes: Suggests
url: https://ropensci.r-universe.dev/spelling
repository: https://CRAN.R-project.org/package=spelling
authors:
- family-names: Ooms
given-names: Jeroen
email: jeroenooms@gmail.com
orcid: https://orcid.org/0000-0002-4035-0289
- family-names: Hester
given-names: Jim
email: james.hester@rstudio.com
year: '2024'
doi: 10.32614/CRAN.package.spelling
CodeMeta (codemeta.json)
{
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"identifier": "gameR",
"description": "Palettes based on video games.",
"name": "gameR: Color Palettes Inspired by Video Games",
"relatedLink": "https://www.constantine-cooke.com/gameR/",
"codeRepository": "https://github.com/nathansam/gameR/",
"issueTracker": "https://github.com/nathansam/gameR/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.0.7",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.4.1 (2024-06-14)",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"author": [
{
"@type": "Person",
"givenName": "Nathan",
"familyName": "Constantine-Cooke",
"email": "nathan.constantine-cooke@ed.ac.uk",
"@id": "https://orcid.org/0000-0002-4437-8713"
}
],
"contributor": [
{
"@type": "Person",
"givenName": "Hugh",
"familyName": "Warden",
"email": "hugh.warden@outlook.com",
"@id": "https://orcid.org/0000-0002-4308-7316"
},
{
"@type": "Person",
"givenName": "Sergej",
"familyName": "Ruff",
"email": "serijnh@gmail.com",
"@id": "https://orcid.org/0009-0000-8264-6347"
}
],
"maintainer": [
{
"@type": "Person",
"givenName": "Nathan",
"familyName": "Constantine-Cooke",
"email": "nathan.constantine-cooke@ed.ac.uk",
"@id": "https://orcid.org/0000-0002-4437-8713"
}
],
"softwareSuggestions": [
{
"@type": "SoftwareApplication",
"identifier": "testthat",
"name": "testthat",
"version": ">= 3.0.0",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=testthat"
},
{
"@type": "SoftwareApplication",
"identifier": "ggplot2",
"name": "ggplot2",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=ggplot2"
},
{
"@type": "SoftwareApplication",
"identifier": "magrittr",
"name": "magrittr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=magrittr"
},
{
"@type": "SoftwareApplication",
"identifier": "palmerpenguins",
"name": "palmerpenguins",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=palmerpenguins"
},
{
"@type": "SoftwareApplication",
"identifier": "knitr",
"name": "knitr",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=knitr"
},
{
"@type": "SoftwareApplication",
"identifier": "rmarkdown",
"name": "rmarkdown",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=rmarkdown"
},
{
"@type": "SoftwareApplication",
"identifier": "spelling",
"name": "spelling",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=spelling"
}
],
"softwareRequirements": {
"SystemRequirements": null
},
"fileSize": "276.87KB"
}
GitHub Events
Total
- Create event: 4
- Issues event: 1
- Release event: 1
- Watch event: 1
- Delete event: 2
- Issue comment event: 2
- Push event: 48
- Pull request event: 4
- Fork event: 1
Last Year
- Create event: 4
- Issues event: 1
- Release event: 1
- Watch event: 1
- Delete event: 2
- Issue comment event: 2
- Push event: 48
- Pull request event: 4
- Fork event: 1
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Nathan Constantine-Cooke | n****e@e****k | 73 |
| github-actions[bot] | g****] | 11 |
| Hugh Warden | h****n@o****m | 4 |
| dependabot[bot] | 4****] | 2 |
Committer Domains (Top 20 + Academic)
ed.ac.uk: 1
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 1
- Total pull requests: 6
- Average time to close issues: 13 days
- Average time to close pull requests: 2 months
- Total issue authors: 1
- Total pull request authors: 2
- Average comments per issue: 1.0
- Average comments per pull request: 1.17
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 5
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: 9 months
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 1.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 1
Top Authors
Issue Authors
- nathansam (2)
Pull Request Authors
- dependabot[bot] (8)
- SergejRuff (1)
- hwarden162 (1)
Top Labels
Issue Labels
Pull Request Labels
dependencies (8)
github_actions (1)
Packages
- Total packages: 1
-
Total downloads:
- cran 327 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 7
- Total maintainers: 1
cran.r-project.org: gameR
Color Palettes Inspired by Video Games
- Homepage: https://www.constantine-cooke.com/gameR/
- Documentation: http://cran.r-project.org/web/packages/gameR/gameR.pdf
- License: GPL (≥ 3)
-
Latest release: 0.0.7
published about 1 year ago
Rankings
Forks count: 12.8%
Stargazers count: 21.1%
Average: 27.9%
Dependent packages count: 29.8%
Dependent repos count: 35.5%
Downloads: 40.2%
Maintainers (1)
Last synced:
4 months ago
Dependencies
DESCRIPTION
cran
- knitr * suggests
- palmerpenguins * suggests
- rmarkdown * suggests
- spelling * suggests
- testthat >= 3.0.0 suggests
- tidyverse * suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v4 composite
- actions/upload-artifact v4 composite
- codecov/codecov-action v4 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pr-commands.yaml
actions
- actions/checkout v4 composite
- r-lib/actions/pr-fetch v2 composite
- r-lib/actions/pr-push v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite