An open API service indexing awesome lists of open source software.

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

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-"
)
```

[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/ral)](https://cran.r-project.org/package=ral)
[![Travis-CI Build Status](https://travis-ci.org/edwindj/ral.svg?branch=master)](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")
```