hneth / unikn Goto Github PK
View Code? Open in Web Editor NEWEnabling corporate design elements in R (with colors and color-related functions)
Enabling corporate design elements in R (with colors and color-related functions)
When comparing different custom palettes using seecol
function, is there any way to specify palette names instead of the default "pal#"? Thanks!
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
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.
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)
I hope there is a workaround to that. Thank you
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.
When using seecol()
to mix and extend color palettes, the names of base R colors are repeated (e.g., "white"
becomes "whitewhite"
).
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.
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:
newpal()
command creating your color palette),We're looking forward to your contributions!
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()
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.