View source: R/custimized_track.R
add_heatmap_track | R Documentation |
add heatmap to a new track
add_heatmap_track(gr, mat, fill, border = NA, track = current_track() + 1, ...)
gr |
genomic regions, it can be a data frame or a |
mat |
matrix in which rows correspond to intervals in |
fill |
a color mapping function which maps values to colors. Users can consider |
border |
border of the grids in heatmap |
track |
which track the graphics will be added to. By default it is the next track. The value should only be a scalar. |
... |
other arguments passed to |
No value is returned.
Zuguang Gu <z.gu@dkfz.de>
add_rect_track
, add_track
require(circlize)
bed = generateRandomBed(200)
col_fun = colorRamp2(c(-1, 0, 1), c("green", "black", "red"))
gtrellis_layout(nrow = 3, byrow = FALSE, track_axis = FALSE)
mat = matrix(rnorm(nrow(bed)*4), ncol = 4)
add_heatmap_track(bed, mat, fill = col_fun)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.