ejc_color_map: A mapping function to specific colors for UKBB single-cell...

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(ejc_color_maps)

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

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