Learn R Programming

MRIaggr (version 1.1.5)

initCol: Color initialization

Description

Check and initialize display arguments. For internal use.

Usage

initCol(contrast, coords, param = NULL, pch, col, palette, breaks, legend, type.breaks, method)

Arguments

contrast
the contrast value of each observation. matrix.
coords
the spatial coordinates of the observations. data.frame.
param
the contrast parameter to display. character.
pch
the symbol with which the observations will be displayed. positive integer.
col
the color with which the observations will be displayed. character vector.
palette
the colors or the palette to use when associating colors to intensities. character vector or character.
breaks
the break points or the number of breakpoints to use to generate the color intervals. numeric vector or postive integer.
legend
how should the legend be displayed ? logical, NULL or "only".
type.breaks
should the break points be equally space according the range of data values ("range"), centered ("range_center") or correspond to the quantile values ("quantile") ?
method
the name of the function that called the initializer. character.

Details

FUNCTION: breaks and palette are active only if col is NULL.