scale_x_sequnit: scale x by unit

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

scale x by unit 'Mb','kb', 'bp'.

Usage

1
scale_x_sequnit(unit = c("Mb", "kb", "bp"), append = NULL)

Arguments

unit

unit to scale x. Default is Mb.

append

default NULL. If pass a character, it disalbe unit and arbitrarily append a text behind the original x scale numbers.

Value

'position_c'

Author(s)

Tengfei Yin

Examples

1
2
3
4
5
6
7
library(ggplot2)
p <- qplot(x = seq(1, to = 10000, length.out = 40), y = rnorm(40), geom
= "point")
## default mb
p + scale_x_sequnit()
p + scale_x_sequnit("kb")
p + scale_x_sequnit("bp")

ggbio documentation built on Nov. 8, 2020, 5:04 p.m.