Learn R Programming

gtrellis (version 1.4.2)

add_lines_track: add lines to a new or exsited track

Description

add lines to a new or exsited track

Usage

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.

Examples

Run this code
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))

Run the code above in your browser using DataLab