View source: R/custimized_track.R
add_rect_track | R Documentation |
add retangles to a new or exsited track
add_rect_track(gr, h1, h2, gp = gpar(), ...)
gr |
genomic regions, it can be a data frame or a |
h1 |
top/bottom positions for rectangles |
h2 |
top/bottom positions for rectangles |
gp |
graphic settings, should be specified by |
... |
other arguments passed to |
No value is returned.
Zuguang Gu <z.gu@dkfz.de>
add_heatmap_track
, add_track
require(circlize)
bed = generateRandomBed(200)
col_fun = colorRamp2(c(-1, 0, 1), c("green", "black", "red"))
gtrellis_layout(track_ylim = range(bed[[4]]), nrow = 3, byrow = FALSE)
add_rect_track(bed, h1 = bed[[4]], h2 = 0,
gp = gpar(col = NA, fill = col_fun(bed[[4]])))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.