jiho / chroma Goto Github PK
View Code? Open in Web Editor NEWA R package to handle colors.
A R package to handle colors.
Error in color_scale(domain = range(x, na.rm = TRUE), ...) :
formal argument "domain" matched by multiple actual arguments
While this would be useful to color match the theme in latex presentations, those palettes are not for graphical representation of continuous variables and maybe only valid for a small number of categorical levels. Even then, there is no argument for their perceptual value.
To be considered together with adding support for other palettes.
Might be problematic with range()
Hi
You might already know it, but just in case: I tried the dev version, and now face some errors...
Thanks!!
devtools::install_github("jiho/chroma")
#> Skipping install of 'chroma' from a github remote, the SHA1 (c24168e5) has not changed since last install.
#> Use `force = TRUE` to force installation
library("chroma")
#>
#> Attaching package: 'chroma'
#> The following objects are masked from 'package:grDevices':
#>
#> hcl, hsv, rgb
show_col(interp_colors(6, colors=c("#002855", "#DAAA00")))
#> Error in context_eval(join(src), private$context): TypeError: Object 3,4,6,7,8,9 has no method 'includes'
Created on 2019-07-25 by the reprex package (v0.3.0)
Hi
Thanks for this nice package! I was looking at the post on chroma.js(), where they talk a lot about the lighntess correction, showing for example this piece of code:
chroma.scale(['white', 'yellow', 'red', 'black'])
.correctLightness();
Is this function also available in the R package?
Thanks!
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.