add_segments_track: add segments to a new or exsited track

View source: R/custimized_track.R

add_segments_trackR Documentation

add segments to a new or exsited track

Description

add segments to a new or exsited track

Usage

add_segments_track(gr, value, gp = gpar(), ...)

Arguments

gr

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

value

numeric values associated with gr

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

require(circlize)
bed = generateRandomBed(nr = 100)
gtrellis_layout(track_ylim = range(bed[[4]]), nrow = 3, byrow = FALSE)
add_segments_track(bed, bed[[4]], gp = gpar(col = ifelse(bed[[4]] > 0, "red", "green"), lwd = 4))

jokergoo/gtrellis documentation built on Feb. 27, 2024, 6:44 p.m.