add_points_track: add points to a new or exsited track

Description Usage Arguments Value Author(s) Examples

Description

add points to a new or exsited track

Usage

1
add_points_track(gr, value, pch = 16, size = unit(1, "mm"), gp = gpar(), ...)

Arguments

gr

genomic regions, it can be a data frame or a GRanges object

value

numeric values associated with gr

pch

shape of points

size

size of points, should be a unit object

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

1
2
3
4
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")))

eilslabs/gtrellis documentation built on May 16, 2019, 1:25 a.m.