crayons

Color Palettes from Crayon Boxes

https://github.com/christopherkenny/crayons

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 1 committers (100.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.1%) to scientific vocabulary
Last synced: 11 months ago · JSON representation

Repository

Color Palettes from Crayon Boxes

Basic Info
Statistics
  • Stars: 6
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Created over 3 years ago · Last pushed 11 months ago
Metadata Files
Readme Changelog License

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# crayons 


[![CRAN
status](https://www.r-pkg.org/badges/version/crayons)](https://CRAN.R-project.org/package=crayons)
[![crayons status
badge](https://christopherkenny.r-universe.dev/badges/crayons)](https://christopherkenny.r-universe.dev/crayons)
[![Lifecycle:
stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![R-CMD-check](https://github.com/christopherkenny/crayons/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/christopherkenny/crayons/actions/workflows/R-CMD-check.yaml)


`crayons` provides crayon-based color palettes. For nostalgic uses, consider combining with [ggrough](https://github.com/xvrdm/ggrough) or [roughsf](https://github.com/schochastics/roughsf). 

These palettes are not necessarily (and unlikely to be) color-blind friendly. For public-facing work, consider a color-blind friendly package, such as [Cory McCartan's wacolors](https://github.com/corymccartan/wacolors).

## Installation

`crayons` is available on CRAN and can be installed using:

```r
install.packages('crayons')
```

You can also install the development version of crayons from [GitHub](https://github.com/) with:

``` r
remotes::install_github('christopherkenny/crayons')
```

## Example

`crayons` provides basic ggplot2 scales for `fill` and `color` (also aliased as `colour`).

```{r example}
library(ggplot2)
library(crayons)

mpg |>
  ggplot() + 
  geom_point(aes(displ, hwy, colour = class)) + 
  scale_color_crayons(palette = 'original')
```

`crayons` has many palettes, based on current and long-gone crayon packs.

```{r, echo = FALSE, fig.width = 10, fig.height = 10}
for (i in seq_along(crayons)) {
  p <- plot(crayons[[i]]) +
    ggplot2::labs(title = names(crayons)[[i]])
  print(p)
}
```

Owner

  • Name: Christopher T. Kenny
  • Login: christopherkenny
  • Kind: user
  • Location: Cambridge, MA
  • Company: Harvard University

Redistricting and rstats. Harvard University, PhD Candidate, Department of Government. Cornell '19.

GitHub Events

Total
  • Watch event: 4
  • Push event: 6
Last Year
  • Watch event: 4
  • Push event: 6

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 47
  • Total Committers: 1
  • Avg Commits per committer: 47.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 6
  • Committers: 1
  • Avg Commits per committer: 6.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Christopher Kenny c****4@c****u 47
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 1
  • Total pull requests: 1
  • Average time to close issues: 3 days
  • Average time to close pull requests: 26 minutes
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: 26 minutes
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • christopherkenny (1)
Pull Request Authors
  • christopherkenny (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 238 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 1
cran.r-project.org: crayons

Color Palettes from Crayon Boxes

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 238 Last month
Rankings
Forks count: 28.8%
Dependent packages count: 29.8%
Stargazers count: 35.2%
Dependent repos count: 35.5%
Average: 43.8%
Downloads: 89.6%
Last synced: 11 months ago

Dependencies

.github/workflows/R-CMD-check.yaml actions
  • actions/checkout v3 composite
  • r-lib/actions/check-r-package v2 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/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action v4.4.1 composite
  • actions/checkout v3 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION cran
  • ggplot2 * imports
  • grDevices * imports
  • cli * suggests
  • farver * suggests