plotColorLegend2: Gradient legend

View source: R/general.purpuse.utilities.R

plotColorLegend2R Documentation

Gradient legend

Description

Wrapper for plotColorLegend to plot legend for given range

Usage

plotColorLegend2(
  x0 = NULL,
  x1 = NULL,
  y0 = NULL,
  y1 = NULL,
  zlim,
  fullzlim = zlim,
  zfun = identity,
  z2col = num2col,
  N = 100,
  ntic = 5,
  leg = NULL,
  title = NULL,
  title.adj = c(0, -0.5),
  horizontal = FALSE
)

Arguments

x0, x1, y0, y1

rectange coordinates of the legend in nfc coordinates

zlim

numeric vector with two items. Range to show, trimmed to fullzlim if wider.

fullzlim

numeric vector with two items. Full range to be considered.

zfun

transformation for value (gradient will be drawn along transformed value). Identity, log1p, sqrt, ets.

z2col

function to transform numbers to colors

N

number of steps in the gradient

ntic

desired number of tics

leg

tics values, if NULL (default) estimated automatically

title

legend title

title.adj

legend title adj parameter to be passed to text function


iaaka/visutils documentation built on Jan. 17, 2025, 11:29 p.m.