plotColorScale: Add a color scale to plots

Description Usage Arguments Value Author(s) See Also

Description

plotColorScale is a wrapper function around color.legend to ease its usage.

Usage

1
2
3
4
plotColorScale(col, zlim = c(), pos = list(x = c(1.02, 1.08), 
    y = c(0.1, 0.9)), align = "rb", gradient = "y", cex = 1, 
    cex.title = 1, title = "cts/px", outer.range = c(FALSE, FALSE), 
    legend = c())

Arguments

col

vector of color strings defining the palette to use

zlim

numeric vector (of length 2) defining the upper and lower limit of the values mapped to the color scale.

pos
align

character: alignment option passed to color.legend

gradient

character: orientation option passed to color.legend

cex

numeric: character expansion factor for the text labels

cex.title
title

character: the title of the color scale

outer.range

logical: whether to extend the scale over the zlim borders at its bottom and top.

legend

Value

Nothing is returned.

Author(s)

Jannis v. Buttlar

See Also

color.legend


JBTools documentation built on May 2, 2019, 8:20 a.m.