show_color: Show colors

Description Usage Arguments Examples

Description

Display one or several (collections of) colors next to each other

Usage

1
2
3
4
show_color(..., height = 1, lspace = 0.4, rspace = 0.4,
  name = TRUE, name.pos = c("top", "bottom"), name.cex = 1,
  name.rot = 90, name.space = 0.02, defualt.units = "inches",
  bcol = NA)

Arguments

...

vectors of colors (specified as hex codes) to display.

height

height of color bar.

lspace

space of left margin.

rspace

space of right margin.

name

a logic value indicates whether plot the color name.

name.pos

name should the viewport be aligned to the top or bottom.

name.cex

expansion factor for numeric axis name.

name.rot

A numerical value specifying (in degrees) how name should be rotated, from 0 to 180.

name.space

space betweed name and color bar.

bcol

background color of plot region.

Examples

1
2

houyunhuang/tinycolor documentation built on June 6, 2019, 7:43 p.m.