makeLabels: A helper function to create axis ticks and human readable...

Description Usage Arguments Examples

View source: R/makeLabels.R

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

1
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

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

Repliscope documentation built on July 15, 2019, 5:02 p.m.