coatless-rpkg / cetcolor Goto Github PK
View Code? Open in Web Editor NEWCET Perceptually Uniform Colour Maps for R
Home Page: http://r-pkg.thecoatlessprofessor.com/cetcolor/
CET Perceptually Uniform Colour Maps for R
Home Page: http://r-pkg.thecoatlessprofessor.com/cetcolor/
c.f. https://peterkovesi.com/projects/colourmaps/
Note: Update May 2018: New colour maps L16-L19, D1A and D13
WIP in #6
No code coverage at the moment.
Could be useful in the future.
Figure out a way to get a more generalized gradient so plots using greater than 256 colors can be used.
winbuilder
NEWS.md
DESCRIPTION
version number@peterkovesi do you by chance have any update notes as to how the color palettes have changed recently? Anything with respect to the rename of old palettes found in 2018.
I'm seeing a bunch of new names and existing palettes having ~3 decimal places instead of 5 decimal places.
Think about adding some hooks for ggplot2... (Package will have more dependencies though... )
Switch naming scheme to codes
Dropped the CET-
prefix and use lowercase letters, e.g. d1
, i1
, ...
c.f.
In practice I simply refer to the colour maps by a number prefixed by one or two characters to indicate whether the map is linear (l), diverging (d), rainbow (r), cyclic(c), isoluminant (i) or colour blind (cb). Thus, for example, the linear greyscale is 'l1' or 'cet-l1', the heat colour map is 'l3' or 'cet-l3' and the blue-white-red diverging map is 'd1' or 'cet-d1' etc, etc. In the visual catalogue shown further below you will see each colour map with both its simple and complex names.
For those who came here looking for a Python colorcet implementation, you'll find the Glasbey palettes missing.
These can be converted quite easily though. Download the assets folder from colorcet then:
GlasbeyCsvDir <- r"(...\)"
fn <- glue("{GlasbeyCsvDir}glasbey_hv_n256.csv")
data <- readr::read_csv( fn,
col_names = c("R", "G", "B"),
col_types = c("d", "d", "d")
)
glPal <- rgb(data)
Not as convenient as the cetcolor package of course.
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.