plotomics
    Preparing search index...

    Function categoricalColors

    • Colours for n categories, in order. The default palette (Okabe-Ito, also used when palette is empty) gives way to PALETTE_20 past 8 categories, so category 9 does not take the colour of category 1. Any other palette is used as given. Colours repeat past the palette's end.

      Parameters

      • palette: readonly string[] | undefined
      • n: number

      Returns string[]