imageBG: Neutral background for NA elements in an image

Description Usage Arguments Examples

Description

Sets NA grid values of z to selected replacement colour..

Usage

1
2
3
imageBG(x = seq(0, 1, length.out = nrow(z)), y = seq(0, 1, length.out = ncol(z)), 
z, zlim = range(z[is.finite(z)]), xlim = range(x), ylim = range(y), 
col = "#80808080", add = TRUE, ...)

Arguments

x

same as image

y

same as image

z

same as image

zlim

same as image

xlim

same as image

ylim

same as image

col

A colour to be used for NA entries. Preferably a grey tone with intensity matching the average signsal here~~

add

same as image

...

Passed to image

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (x = seq(0, 1, length.out = nrow(z)), y = seq(0, 1, 
    length.out = ncol(z)), z, zlim = range(z[is.finite(z)]), 
    xlim = range(x), ylim = range(y), col = "#80808080", add = TRUE, 
    ...) 
{
    z <- ifelse(is.na(e[[k]]), 1, NA)
    image(x, y, z, zlim, xlim, ylim, col, add, ...)
  }

bertin documentation built on May 2, 2019, 5:54 p.m.

Related to imageBG in bertin...