Learn R Programming

pafr (version 0.0.2)

Gb_lab: Number formatters for scales in base pairs

Description

For use with ggplot2

Usage

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

Run this code
# NOT RUN {
ali <- read_paf(system.file("extdata", "fungi.paf", package="pafr"))
doplot(ali) + scale_x_continuous("Genomic position", label=Mb_lab)
# }

Run the code above in your browser using DataLab