colorLegend: Simple color legend

Description Usage Arguments Value Author(s)

View source: R/color-utils.R

Description

Draws a simple color legend/bar.

Usage

1
colorLegend(x = 0, y = 0, min.x, max.x, colramp = colorRampPalette(brewer.pal(11, "RdBu"))(255), nr.cols = 13, height = 5, width = 0.8)

Arguments

x

x position on the plot where to place the bar.

y

y position on the plot.

min.x

smallest value to be drawn on the bar.

max.x

largest value.

colramp

the color ramp.

nr.cols

number of colors to be drawn.

height

the height of the color bar.

width

the width of the color bar

Value

Draws a color legend/bar.

Author(s)

Johannes Rainer


jotsetung/GenomePlotR documentation built on May 19, 2019, 9:41 p.m.