View source: R/get.line.breaks.R
get.line.breaks | R Documentation |
Given a vector, returns the indices (and an adjustment to draw lines between cells) where the value is not equal to the preceding value. Main use intended to be in row.lines arguments to create.heatmap
get.line.breaks(
x
);
x |
A vector, numeric, factor or character. |
A vector of integers representing the break points in the vector x
Nicholas Harding
set.seed(12345);
values <- sample(
default.colours(3),
20,
replace = TRUE
);
get.line.breaks(values);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.