showColorsWithNames: showColorsWithNames

Description Usage Arguments

View source: R/showColorsWithNames.R

Description

A quick and dirty way to show colours with name labels in a plot, slightly modified from show_col() function in 'scales' library .

Usage

1
showColorsWithNames(colours, label_names = TRUE, cex_label = 1, borders = NULL)

Arguments

colours

A character vector of colours, with or without names

label_names

Whether to show label names

cex_label

Size of printed labels, as multiplier of default size.

borders

Border color for each tile. Default uses par("fg"). Use border = NA to omit borders.


RuiyuRayWang/scWidgets documentation built on Dec. 18, 2021, 11:54 a.m.