BoutrosLab.plotting.general (version 5.9.2)

get.line.breaks: Get line breaks

Description

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

Usage

get.line.breaks(
	x
	);

Arguments

x

A vector, numeric, factor or character.

Value

A vector of integers representing the break points in the vector x

Examples

Run this code
# NOT RUN {
set.seed(12345);
values <- sample(
	default.colours(3),
	20,
	replace = TRUE
	);
get.line.breaks(values);
# }

Run the code above in your browser using DataCamp Workspace