GithubHelp home page GithubHelp logo

christianholland / aachencolorpalette Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 4.91 MB

R package to query colors inspired from RWTH Aachen corporate design

Home Page: https://christianholland.github.io/AachenColorPalette/index.html

License: GNU Affero General Public License v3.0

R 100.00%
colorpalette color-scheme rwth rwth-aachen rwth-aachen-university r

aachencolorpalette's Introduction

AachenColorPalette

R-CMD-check codecov GitHub

Overview

This package allows to query colors from a palette inspired from RWTH Aachen corporate design using R. The color palette contains 13 different colors, each in 5 different intensities (100%, 75%, 50%, 25% and 10%; see figure below).

Disclaimer

The color palette makes no claim to completeness or correctness of the official RWTH Aachen corporate design.

Installation

# install the development version from GitHub
# install.packages("remotes")
remotes::install_github("christianholland/AachenColorPalette")

Usage

Query colors by combining color name in lower case (check figure below for color names) and color intensity. For colors with 100% intensity the color name alone is sufficient.

# load package
library(AachenColorPalette)

# show the color palette
display_aachen_color()

# query single or multiple colors
aachen_color("blue")
[1] "#00549F"

aachen_color("green", "green75", "green50", "green25", "green10")
[1] "#57AB27" "#8DC060" "#B8D698" "#DDEBCE" "#F2F7EC"

Color Palette

Example

library(ggplot2)
library(AachenColorPalette)

ggplot(mtcars, aes(x = wt, y = mpg, color=factor(cyl))) +
  geom_point() +
  scale_color_manual(values = aachen_color("bordeaux", "green", "turquoise"))

aachencolorpalette's People

Contributors

christianholland avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.