makeLabels {Repliscope}R Documentation

A helper function to create axis ticks and human readable labels.

Description

makeLabels is called by plotGenome() and plotCoverage() functions. It creates a dataframe containing two columns: 'ticks' and 'labels'. 'Ticks' contains axis ticks coordinates, 'labels' will contain human readable lables for the ticks (using prefixes and optional units).

Usage

makeLabels(theMin, theMax, unit = "")

Arguments

theMin

Minimum value for the scale (double).

theMax

Maximum value for the scale (double).

unit

Unit to use for the labels (string, optional)

Examples

labels <- makeLabels(0,1200000,"b")

[Package Repliscope version 1.1.1 Index]