getScale: Get scale information from a GRanges
Description
Trying to get scale information from a GRanges
object, used for
circular view for geom "scale".
Usage
getScale(gr, unit = NULL, n = 100, type = c("M", "B", "sci"))
Arguments
unit
A numeric value for scale unit. Default NULL
use argument
n
to estimate the unit.
n
Integer value to indicate how many scale ticks to make.
type
unit types to shown.
Value
A GRanges
object, with extra column: "type" indicate it's longer
major ticks or shorter minor ticks. "scale.y" indicates y height for
major and minor ticks. Default ratio is 3:1.