View source: R/custimized_track.R
add_points_track | R Documentation |
add points to a new or exsited track
add_points_track(gr, value, pch = 16, size = unit(1, "mm"), gp = gpar(), ...)
gr |
genomic regions, it can be a data frame or a |
value |
numeric values associated with |
pch |
shape of points |
size |
size of points, should be a |
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()
gtrellis_layout(track_ylim = range(bed[[4]]), nrow = 3, byrow = FALSE)
add_points_track(bed, bed[[4]], gp = gpar(col = ifelse(bed[[4]] > 0, "red", "green")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.