Learn R Programming

JBTools (version 0.7.2.9)

plotColorScale: Add a color scale to plots

Description

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

Usage

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

See Also

color.legend