colorbar: Add color-bar to plot

Description Usage Arguments Author(s) Examples

View source: R/colorbar.R

Description

Add color-bar to plot

Usage

1
2
3
4
5
  colorbar(clut = lava:::Col(rev(rainbow(11, start = 0, end = 0.69)), 0.5),
    x.range = c(-0.5, 0.5), y.range = c(-0.1, 0.1),
    values = seq(clut), digits = 2, label.offset, srt = 45,
    cex = 0.5, border = NA,
    direction = c("horizontal", "vertical"), ...)

Arguments

clut

Color look-up table

x.range

x range

y.range

y range

values

label values

digits

number of digits

label.offset

label offset

srt

rotation of labels

cex

text size

border

border of color bar rectangles

direction

horizontal or vertical color bars

...

additional low level arguments (i.e. parsed to text)

Author(s)

Klaus K. Holst

Examples

1
2
3
4
5
6
7
## Not run: 
plot(x,roi=R,mm=-18,range=5)
colorbar(clut <- lava:::Col(rev(rainbow(11,start=0,end=0.69)),0.5),x=c(-40,40),y.range=c(84,90),values=c(-5:5))

colorbar(clut <- lava:::Col(rev(rainbow(11,start=0,end=0.69)),0.5),x=c(-10,10),y.range=c(-100,50),values=c(-5:5),direction="vertical",border=1)

## End(Not run)

kkholst/neurocdf documentation built on May 18, 2017, 9:36 p.m.