kwstat / pals Goto Github PK
View Code? Open in Web Editor NEWColor Palettes and Palette Evaluation Tools
License: Other
Color Palettes and Palette Evaluation Tools
License: Other
Do you have meta data of the palettes? Specifically:
So I'm looking for something similar as:
RColorBrewer::brewer.pal.info
#> maxcolors category colorblind
#> BrBG 11 div TRUE
#> PiYG 11 div TRUE
#> PRGn 11 div TRUE
#> PuOr 11 div TRUE
#> RdBu 11 div TRUE
#> RdGy 11 div FALSE
#> RdYlBu 11 div TRUE
#> RdYlGn 11 div FALSE
#> Spectral 11 div FALSE
#> Accent 8 qual FALSE
#> Dark2 8 qual TRUE
#> Paired 12 qual TRUE
#> Pastel1 9 qual FALSE
#> Pastel2 8 qual FALSE
#> Set1 9 qual FALSE
#> Set2 8 qual TRUE
#> Set3 12 qual FALSE
#> Blues 9 seq TRUE
#> BuGn 9 seq TRUE
#> BuPu 9 seq TRUE
#> GnBu 9 seq TRUE
#> Greens 9 seq TRUE
#> Greys 9 seq TRUE
#> Oranges 9 seq TRUE
#> OrRd 9 seq TRUE
#> PuBu 9 seq TRUE
#> PuBuGn 9 seq TRUE
#> PuRd 9 seq TRUE
#> Purples 9 seq TRUE
#> RdPu 9 seq TRUE
#> Reds 9 seq TRUE
#> YlGn 9 seq TRUE
#> YlGnBu 9 seq TRUE
#> YlOrBr 9 seq TRUE
#> YlOrRd 9 seq TRUE
Created on 2021-06-10 by the reprex package (v2.0.0)
We can classify 'rainbow' palettes as sequential. The bivariate palettes (great that you have them!) are a category on their own.
(As you may know I'll use pals
for tmap
: see https://github.com/mtennekes/tmap/issues/566)
Please consider moving the rgl
package from Imports
to Suggests
and require
ing it in the places where it is used.
On macOS, loading rgl
starts X11, this is not needed at all for most common uses of pals
.
Thanks for a very useful package!
Hi, a feature request:
The bivariate palettes have a fixed n. It would be great to be able to set this, preferably for the number of rows and columns.
E.g. arc.bluepink(n = 4, m = 5)
should create a palette of 4 x 5 colors.
I think it is easy to implement using colorRampPalette
, first in one dimension, then in the other dimension.
Hi;
I ran into your package and it looks like it has some features that I can use for some of my graphics. I need to include multiple colors on a graphic created with discrete data. How can I use one of your palettes inside the ggplot call? Consider the code below:
ggplot(mtcars) +
geom_bar(aes(factor(hp), fill=factor(hp))) +
scale_fill_brewer(palette="polychrome")
I would like to use either polychrome, Kelly or stepped.
I saw your example with continuous data here: https://cran.r-project.org/web/packages/pals/vignettes/pals_examples.html
but my example is with categorical data. Is it possible to use your palettes here?
I am trying to uniquely label the datapoints from 22 samples in a scatter plot. I seek your help that how I can do this using pals package in R. Like in my scatter plot function's argument cols = "what" ......???
Hi,
I see a whole series of "tol" palettes in `pals:::syspals:
names(pals:::syspals)[substr(names(pals:::syspals), 1, 3) == "tol"]
[1] "tol" "tol.bright" "tol.highcontrast" "tol.vibrant" "tol.muted" "tol.dark" "tol.light"
[8] "tol.sunset" "tol.burd" "tol.prgn" "tol.ylorbr" "tol.iridescent" "tol.smoothrainbow"
but there are no functions to retrieve them (except for "tol", "tol.groundcover", and "tol.rainbow"). Can you also export the others too?
.
Maybe the Value-Suppressing Uncertainty Palettes could be a worthwhile addition (Github Repo).
As far as i understood (I am not related to the UW Interactive Data Lab), the Uncertainty Palette is kind of an enhanced bivariate palette for the use case of communicating uncertainty along with a value. Should be great for mapping (in the meaning of cartography) of statistics.
Hi
pal.cube(cubehelix)
Error in loadNamespace(x) : there is no package called ‘rgl’
so
install.packages("rgl")
require(rgl)
and run
pal.cube(cubehelix)
again. It works now.
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.