Giter Site home page Giter Site logo

pals's People

Contributors

bschilder avatar kwstat 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  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  avatar  avatar  avatar  avatar  avatar

pals's Issues

Meta data: maximum number of colors and palette type

Do you have meta data of the palettes? Specifically:

  • The maximum number of colors that are contained in each qualitative palette originally.
  • The type of each palette.

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)

Move rgl to Suggests

Please consider moving the rgl package from Imports to Suggests and requireing 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!

bivariate palettes: flexible n

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.

How to implement a pals palette in ggplot2 (categorical)

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?

How to use the pals for my scatter plot?

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" ......???

tol palettes

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?
.

pal.cube(cubehelix) error

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.

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.