display.colors: Display a vector of colors for viewing

Description Usage Arguments Value Examples

View source: R/display.colors.R

Description

Display a vector of colors for viewing

Usage

1

Arguments

cols

A character vector of colors

Value

An tiled image with color labels as a gg object

Examples

1
2
3
4
5
6
7
display.colors(colors()[58:61])

m <- matrix(c(1,0.5, 0, 0.5, 0.2, 0.9, 0.2, 1, 1, 0.3, 0.6, 0.2), ncol = 3)
display.colors(rgb(m))

pal <- colorRampPalette(c('blue', 'yellow', 'pink'))
display.colors(pal(10))

nickfishbane/fishyTools documentation built on May 23, 2019, 4:47 p.m.