add_lines_track.Rd
add lines to a new or exsited track
add_lines_track(gr, value, area = FALSE, baseline = "bottom", gp = gpar(), ...)
gr | genomic regions, it can be a data frame or a |
---|---|
value | numeric values associated with |
area | whether draw polygon for the area under the line |
baseline | baseline for drawing polygon |
gp | graphic settings, should be specified by |
... | other arguments passed to |
No value is returned.
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))