Coder Social home page Coder Social logo

hneth / unikn Goto Github PK

View Code? Open in Web Editor NEW
38.0 2.0 6.0 139.5 MB

Enabling corporate design elements in R (with colors and color-related functions)

R 100.00%
color text-decoration corporate-design r-package color-palette colorscheme palette r university-colors branding

unikn's People

Contributors

hneth avatar nigradwohl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

unikn's Issues

dim parameter not working

Dear,

When I try to use the dim parameter in the slide command (slide(dim = c(3, 1)), it does not work and it shows a square. Any thoughts about what is going on?

Best

centering text

Any tip on how to center the text? It seems it depends on the length and size of the text, but I could not figure out how to do it.

Size of Hex code in seecol() is too small to read

unikn is a fantastic package. I'm just having trouble with the small size of hex code in seecol(), which is too small to read when displaying 14 or more colors. Here an example:

library(unikn)
library(magrittr)
unikn::usecol(c("black","blue","white"), n=14) %>% unikn::seecol(hex=TRUE)

image

I hope there is a workaround to that. Thank you

Failing to find custom color palettes?

When using seecol(pal = list(pal_1, pal_2)) to compare (or scale) multiple color palettes, some custom color palettes (e.g., pal_freiburg_basic from the README) are currently not found.

Use `main` and `sub`, rather than `title` in `seecol()`

The use of a title argument in seecol() may be mnemonic, but is non-standard. In R's plot() command, there are nice and short main and sub arguments for distinguishing between a main title and a subtitle.

Suggestion: Deprecate title and use the default arguments main and sub instead.

Call for contributions: Your color palettes?

The color palettes included in the unikn package are based on the corporate design specifications of the University of Konstanz. However, the package's color-related functions makes it easy and straightforward to define color palettes for other purposes and institutions. (See the newpal() function or our vignette on Institutional colors for instructions.)

Have you used unikn to create your own color palettes? If so, please let us know!

We collect color palettes from other institutions to make them available to R users in future versions of unikn.

To enable us to verify and provide appropriate credit to your contributions, please provide us with the following information:

  1. your code (e.g., the newpal() command creating your color palette),
  2. your source (e.g., some URL with color definitions),
  3. your name and some contact information (e.g., an Email address).

We're looking forward to your contributions!

Add a `demo()` function for illustrating color palettes?

Given that usecol() and newpal() are powerful and versatile functions for creating new color palettes, it would make sense to include a demo() function that applies a given palette to typical visualizations.

For instance, see the demoplot() function of the colorspace package.

PS: By contrast, the show_col() function of scales is similar to seecol().

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.