human_nt {genoPlotR} | R Documentation |
Human-readable nucleotide scale
Description
Return a human readable list from a nucleotide position or lenght.
Usage
human_nt(nt, signif = FALSE)
Arguments
nt |
A nucleotide position |
signif |
Either a logical or an integer. If |
Details
Return a nucleotide value in nt, kb, Mb or Gb, according to the value given. This is particularly useful to display nice scales without too many trailing zeros.
Value
Returns a list with 4 elements
n |
A numeric value corresponding to |
tag |
A character, giving the multiplier used in text. |
mult |
The muliplier used, in numeric value. |
text |
A character, giving the value in a human readable format. |
Author(s)
Lionel Guy
Examples
human_nt(123456)
human_nt(123456, signif=2)
human_nt(123456890, signif=2)
[Package genoPlotR version 0.8.11 Index]