https://github.com/edwindj/ral
R package containing RAL classic colors, mainly used for varnish and powder coating
https://github.com/edwindj/ral
colorscheme r ral
Last synced: 8 months ago
JSON representation
R package containing RAL classic colors, mainly used for varnish and powder coating
- Host: GitHub
- URL: https://github.com/edwindj/ral
- Owner: edwindj
- Created: 2017-01-31T15:17:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-31T07:22:24.000Z (about 9 years ago)
- Last Synced: 2025-05-14T07:51:11.643Z (about 1 year ago)
- Topics: colorscheme, r, ral
- Language: R
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
output: github_document
---
```{r, echo = FALSE}
library(ral)
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "tools/README-"
)
```
[](https://cran.r-project.org/package=ral)
[](https://travis-ci.org/edwindj/ral)
# ral
Data package containing [RAL classic colors](https://en.wikipedia.org/wiki/RAL_colour_standard), mainly used for varnish and powder coating.
## Example
`ral` is a `data.frame` that contains RAL number, color, name, german name and a description.
```{r}
head(ral)
```
`ralcolors` is a named vector that can be used to quickly retrieve a color from the RAL number.
```{r}
ralcolors["RAL9010"]
```
Function `show_ralcolors` shows the color table with corresponding RAL number.
```{r, colortable}
show_ralcolors()
```
## Install
Currently `ral` is not available from CRAN and can be installed with the following:
```R
devtools::install_github("edwindj/ral")
```