plotColorLegend: Show colors

Description Usage Arguments Details Value Author(s) Examples

View source: R/color.R

Description

Plot color legend, simple way to check your default color scheme

Usage

1

Arguments

colors

A character vector of colors

labels

Labels to put aside colors, if missing, use names of the colors character vector.

title

Title for the color legend.

Details

Show color sheme as a legend style, labels

Value

A graphic device showing color legend.

Author(s)

Tengfei Yin

Examples

1
2
cols <- getOption("biovizBase")$baseColor
plotColorLegend(cols, title = "strand legend")

biovizBase documentation built on Nov. 8, 2020, 8:01 p.m.