jdb_color_map: A mapping function to specific colors.

Description Usage Arguments Details Value Examples

View source: R/cell_colors.R

Description

This function maps a common feature/cell type (e.g. "HSC") and returns the canonical hex code associtated with it.

Usage

1

Arguments

name

a character (vector) corresponding to a name with a mappable color

Details

color_map (no 's') is the function; color_maps is a named character vector.

Value

a character (vector) of hex codes

Examples

1
2
3
4
5
6
# See possible values
names(jdb_color_maps)

# Get hex codes
jdb_color_map("HSC")
jdb_color_map(c("HSC", "LMPP", "HSC"))

caleblareau/BuenColors documentation built on March 7, 2020, 3:34 p.m.