Gb_lab: Number formatters for scales in base pairs

Description Usage Arguments Value Examples

Description

For use with ggplot2

Usage

1
2
3
4
5
Gb_lab(x)

Mb_lab(x)

Kb_lab(x)

Arguments

x

The data (in base pairs) to be formatted as Gb, Mb or Kb

Value

A character vector with scale labels

Examples

1
2
3
4
5
## Not run: 
ali <- read_paf(system.file("extdata", "fungi.paf", package="pafr"))
doplot(ali) + scale_x_continuous("Genomic position", label=Mb_lab)

## End(Not run)

dwinter/repeatR documentation built on April 2, 2021, 7:31 p.m.