discreteColorPalette: Generate given number of color codes

Description Usage Arguments Value Examples

View source: R/miscFunctions.R

Description

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

Usage

1
2
3
4
5
6
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

1

singleCellTK documentation built on Nov. 8, 2020, 5:21 p.m.