Learn R Programming

sorvi (version 0.4.05)

set.breaks: Set breaks for color palette. Internal function.

Description

Set breaks for color palette. Internal function.

Usage

set.breaks(mat, interval = 0.1)

Arguments

mat
data matrix or vector for which the breaks will be deterined
interval
interval of color breaks

Value

  • A vector of breakpoints

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