modColours: Modify the colour palette for categorical metadata

View source: R/modColours.R

modColoursR Documentation

Modify the colour palette for categorical metadata

Description

Modify the colour palette for categorical metadata.

Usage

modColours(scConf, meta.to.mod, new.colours)

Arguments

scConf

shinycell config data.table

meta.to.mod

metadata for which to modify the colour palette. Users can either use the actual metadata column names or display names. Please specify only one metadata

new.colours

character vector of new colour palette

Value

updated shinycell config data.table

Author(s)

John F. Ouyang

Examples

scConf = modColours(scConf, meta.to.mod = "library", 
                    new.colours = c("black", "darkorange", "blue", "red"))


SGDDNB/ShinyCell documentation built on Jan. 25, 2024, 3:19 p.m.