add_lines_track: add lines to a new or exsited track

Description Usage Arguments Value Author(s) Examples

Description

add lines to a new or exsited track

Usage

1
add_lines_track(gr, value, area = FALSE, baseline = "bottom", gp = gpar(), ...)

Arguments

gr

genomic regions, it can be a data frame or a GRanges object

value

numeric values associated with gr

area

whether draw polygon for the area under the line

baseline

baseline for drawing polygon

gp

graphic settings, should be specified by gpar.

...

other arguments passed to add_track

Value

No value is returned.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

1
2
3
4
5
require(circlize)
bed = generateRandomBed(200)
gtrellis_layout(n_track = 2, track_ylim = rep(range(bed[[4]]), 2), nrow = 3, byrow = FALSE)
add_lines_track(bed, bed[[4]])
add_lines_track(bed, bed[[4]], area = TRUE, gp = gpar(fill = "grey", col = NA))

eilslabs/gtrellis documentation built on May 16, 2019, 1:25 a.m.