PlotScale: Visualize color scale for PlotMatrix output NOTE:...

Description Usage Arguments Value Author(s) References Examples

Description

Visualize color scale for PlotMatrix output NOTE: Experimental. To be tested thoroughly.

Usage

1
2
3
4
  PlotScale(breaks, colors = NULL, m = NULL,
    label.step = 2, interval = 0.1, two.sided = TRUE,
    label.start = 1, Nlab = 3, palette.function = NULL,
    ndigits = 2, ...)

Arguments

breaks

breakpoints for colors

colors

Optional. Colors.

m

overrides breaks, mypalette and produces a plot that ranges (-m,m)

label.step

step between label text plotting

interval

interval for palette color switches

two.sided

indicates one- or two-sided color palette

label.start

start point for the labels

Nlab

number of labels

palette.function

palette color scale function

ndigits

number of digits to plot

...

optional parameters to be passed to function 'axis', see help(axis) for further detai

Value

A list with the color palette (palette), color breakpoints (breaks), and palette function (palette.function)

Author(s)

Leo Lahti sorvi-commits@lists.r-forge.r-project.org

References

See citation("sorvi")

Examples

1
# mat <- rbind(c(1,2,3,4,5), c(1, 3, 1), c(4,2,2)); pm <- PlotMatrix(mat, "twoway", midpoint = 3); PlotScale(pm$colors, pm$breaks)

sorvi documentation built on May 2, 2019, 6:16 p.m.