Skip to content

Glasbey palettes #9

@IanWorthington

Description

@IanWorthington

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions