Science Score: 13.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
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.6%) to scientific vocabulary
Keywords
color-hex
color-picker
colors
r
rstats
rstats-package
Last synced: 7 months ago
·
JSON representation
Repository
Basic Info
- Host: GitHub
- Owner: drmowinckels
- License: other
- Language: R
- Default Branch: main
- Homepage: https://drmowinckels.github.io/colorhex/
- Size: 12.3 MB
Statistics
- Stars: 19
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 1
Topics
color-hex
color-picker
colors
r
rstats
rstats-package
Created about 5 years ago
· Last pushed over 2 years 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%",
fig.retina = 3
)
```
# colorhex
[](https://CRAN.R-project.org/package=colorhex)
[](https://github.com/drmowinckels/colorhex/actions/workflows/R-CMD-check.yaml)
The goal of colorhex is to create an interface to [color-hex.com](https://www.color-hex.com/), a website with hexidecimal colors and information about them.
It also has lots of user-made palettes that can be used and browsed.
## Installation
You can install the development version from [GitHub](https://github.com/) with:
``` r
# install.packages("remotes")
remotes::install_github("drmowinckels/colorhex", ref = "main")
```
## Example
### Single colors
```{r example, fig.width = 12}
library(colorhex)
x <- get_color("#470f0f")
x
plot(x)
```
```{r "pop-cols", , fig.width = 12, fig.height=12}
x <- get_popular_colors()
x
scales::show_col(x)
```
### Palettes
```{r "latest", fig.height=10}
latest <- get_latest_palettes()
plot(latest)
```
```{r "popular-palettes", fig.height=12}
popular <- get_popular_palettes()
plot(popular)
```
### ggplot2 scales
```{r warning=FALSE}
library(ggplot2)
ggplot(mtcars, aes(mpg)) +
geom_density(aes(fill = disp, group = disp)) +
scale_fill_palettehex_c(popular)
ggplot(mtcars, aes(mpg)) +
geom_density(aes(fill = disp, group = disp)) +
scale_fill_palettehex_c(popular, 3)
ggplot(mtcars, aes(mpg, disp, colour = factor(cyl))) +
geom_point() +
scale_color_palettehex_d(popular)
ggplot(mtcars, aes(mpg, disp, colour = factor(cyl))) +
geom_point() +
scale_color_palettehex_d(popular, 1872)
```
```{r warning=FALSE}
x <- get_color("#008080")
ggplot(mtcars, aes(mpg)) +
geom_density(aes(fill = disp, group = disp)) +
scale_fill_colorhex_c(x)
ggplot(mtcars, aes(mpg)) +
geom_density(aes(fill = disp, group = disp)) +
scale_fill_colorhex_c(x, "tints")
ggplot(mtcars, aes(mpg)) +
geom_density(aes(fill = disp, group = disp)) +
scale_fill_colorhex_c(x, "shades")
ggplot(mtcars, aes(mpg, disp, colour = factor(cyl))) +
geom_point() +
scale_color_colorhex_d(x, "triadic")
ggplot(mtcars, aes(mpg, disp, colour = factor(cyl))) +
geom_point() +
scale_color_colorhex_d(x, "shades")
```
Owner
- Name: Athanasia Monika Mowinckel
- Login: drmowinckels
- Kind: user
- Location: Oslo, Norway
- Company: @LCBC-UiO
- Website: DrMowinckels.io
- Twitter: DrMowinckels
- Repositories: 4
- Profile: https://github.com/drmowinckels
Staff researcher at @LCBC-UiO (www.oslobrains.no) and @Lifebrain (www.lifebrain.uio.no/). PhD in Cognitive Neuroscience. Chapter head for @rladies Oslo
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: over 2 years ago
All Time
- Total issues: 1
- Total pull requests: 4
- Average time to close issues: about 2 hours
- Average time to close pull requests: 5 days
- Total issue authors: 1
- Total pull request authors: 3
- Average comments per issue: 0.0
- Average comments per pull request: 1.25
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 3
- Average time to close issues: about 2 hours
- Average time to close pull requests: 2 days
- Issue authors: 1
- Pull request authors: 2
- Average comments per issue: 0.0
- Average comments per pull request: 1.0
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- drmowinckels (1)
Pull Request Authors
- drmowinckels (1)
- jromanowska (1)
- olivroy (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 229 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 3
- Total maintainers: 1
cran.r-project.org: colorhex
Colors and Palettes from Color-Hex
- Homepage: https://github.com/drmowinckels/colorhex
- Documentation: http://cran.r-project.org/web/packages/colorhex/colorhex.pdf
- License: MIT + file LICENSE
- Status: removed
-
Latest release: 0.1.4
published over 2 years ago
Rankings
Stargazers count: 17.0%
Forks count: 21.9%
Dependent packages count: 29.8%
Average: 33.9%
Dependent repos count: 35.5%
Downloads: 65.5%
Maintainers (1)
Last synced:
over 1 year ago
Dependencies
DESCRIPTION
cran
- ggplot2 * imports
- grDevices * imports
- graphics * imports
- rvest * imports
- xml2 * imports
- scales * suggests
- spelling * suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package 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
.github/workflows/test-coverage.yaml
actions
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite