get.line.breaks {BoutrosLab.plotting.general}R Documentation

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

Author(s)

Nicholas Harding

Examples

set.seed(12345);
values <- sample(
	default.colours(3),
	20,
	replace = TRUE
	);
get.line.breaks(values);

[Package BoutrosLab.plotting.general version 7.1.0 Index]