Learn R Programming

sorvi (version 0.4.05)

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

Description

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

Usage

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)

References

See citation("sorvi")

Examples

Run this code
# Not run
# 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)

Run the code above in your browser using DataLab