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

View source: R/makeLabels.R

makeLabelsR 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")

Repliscope documentation built on Sept. 13, 2022, 9:05 a.m.