rainbowBar: Draw a rainbow bar

Description Usage Arguments Value Author(s) Examples

View source: R/rainbowBar.R

Description

This function generates a bar of rainbow pattern, which can be used as a legend for pseudocolor images.

Usage

1
rainbowBar(w = 256, h = 50)

Arguments

w, h

Width and height of a bar.

Value

Returns an array.

Author(s)

Yuichiro Hourai, yhourai@gmail.com

Takeo Katsuki, takeo.katsuki@gmail.com

Examples

1
2
  bar <- rainbowBar()
  display(bar)

tkatsuki/dipr documentation built on April 19, 2021, 7:18 p.m.