R color palettes for many data classes

后端 未结 7 1449
广开言路
广开言路 2020-12-02 19:17

Are there any good packages for colour palettes in R that can handle many data classes? I have 16 sequential data classes. I tried RColorBrewer but it has a max of 9 data cl

相关标签:
7条回答
  • 2020-12-02 20:13

    There is now the colorspace package http://colorspace.r-forge.r-project.org/reference/hcl_palettes.html.

    E.g., to create a palette with 20 different colors:

    library(colorspace)
    q20 <- qualitative_hcl(20, "Dark2")
    demoplot(q20, "bar")
    

    0 讨论(0)
提交回复
热议问题