add_lines_track {gtrellis} | R Documentation

## 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.

### Author(s)

Zuguang Gu <z.gu@dkfz.de>

### Examples

    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))

[Package gtrellis version 1.26.0 Index]