discreteColorPalette {singleCellTK} | R Documentation

## Generate given number of color codes

### Description

Three different generation methods are wrapped, including `distinctColors`, [randomcoloR](SCTK_PerformingQC_Cell_V3.Rmd) and the `ggplot` default color generation.

### Usage

    discreteColorPalette(
      n,
      palette = c("random", "ggplot", "celda"),
      seed = 12345,
      ...
    )

### Arguments

`n` | An integer, the number of color codes to generate.
`palette` | A single character string. Select the method, available options are `"ggplot"`, `"celda"` and `"random"`. Default `"random"`.
`seed` | An integer. Set the seed for random process that happens only in "random" generation. Default `12345`.
`...` | Other arguments that are passed to the internal function, according to the method selected.

### Value

A character vector of `n` hex color codes.

### Examples

    discreteColorPalette(n = 3)

[Package singleCellTK version 2.0.0 Index]