View source: R/custimized_track.R
add_segments_track | R Documentation |
add segments to a new or exsited track
add_segments_track(gr, value, gp = gpar(), ...)
gr |
genomic regions, it can be a data frame or a |
value |
numeric values associated with |
gp |
graphic settings, should be specified by |
... |
other arguments passed to |
No value is returned.
Zuguang Gu <z.gu@dkfz.de>
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.