getScale: Get scale information from a GRanges

Description Usage Arguments Value Author(s)

View source: R/utils.R

Description

Trying to get scale information from a GRanges object, used for circular view for geom "scale".

Usage

1
getScale(gr, unit = NULL, n = 100, type = c("M", "B", "sci"))

Arguments

gr

a GRanges object.

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.

Author(s)

Tengfei Yin


biovizBase documentation built on Nov. 8, 2020, 8:01 p.m.