bed_glyph: Create example glyphs for valr functions.

Description Usage Arguments Value Examples

View source: R/bed_glyph.r

Description

Used to illustrate the output of valr functions with small examples.

Usage

1
bed_glyph(expr, label = NULL)

Arguments

expr

expression to evaluate

label

column name to use for label values. should be present in the result of the call.

Value

ggplot2::ggplot()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
x <- trbl_interval(
 ~chrom, ~start, ~end,
 'chr1', 25,     50,
 'chr1', 100,    125
)

y <- trbl_interval(
  ~chrom, ~start, ~end, ~value,
  'chr1', 30,     75,  50
)

bed_glyph(bed_intersect(x, y))

x <- trbl_interval(
  ~chrom, ~start, ~end,
  'chr1', 30,     75,
  'chr1', 50,     90,
  'chr1', 91,     120
)

bed_glyph(bed_merge(x))

bed_glyph(bed_cluster(x), label = '.id')

rnabioco/valr documentation built on Jan. 6, 2019, 9:06 a.m.