plotColorLegend: Gradient legend

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

plotColorLegendR Documentation

Gradient legend

Description

Gradient legend

Usage

plotColorLegend(
  x0,
  x1,
  y0,
  y1,
  col,
  at,
  legend,
  title = NULL,
  title.adj = c(0, -0.5),
  horizontal = FALSE
)

Arguments

x0, x1, y0, y1

rectange coordinates of the legend in nfc coordinates

col

vector of colors (full gradient)

at

indexes (of col vector) to place tics

legend

tics labels

title

legend title

title.adj

legend title adj parameter to be passed to text function

Examples

plot(1)
plotColorLegend(0.4,0.5,0.8,0.3,getPal(n=100),0:10*10,1:10)

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