Learn R Programming

HilbertCurve (version 1.2.2)

hc_segments-GenomicHilbertCurve-method: Add line segments to Hilbert curve

Description

Add line segments to Hilbert curve

Usage

## S3 method for class 'GenomicHilbertCurve':
hc_segments(object, gr, gp = gpar(lty = 1, lwd = 1, col = 1))

Arguments

gr
a GRanges object which contains the genomic regions to be mapped to the curve

Value

Details

It is basically a wrapper of hc_segments,HilbertCurve-method.

Examples

Run this code
require(circlize)
bed = generateRandomBed(nr = 100)
gr = GRanges(seqnames = bed[[1]], ranges = IRanges(bed[[2]], bed[[3]]))
hc = GenomicHilbertCurve()
hc_segments(hc, gr, gp = gpar(col = rand_color(length(gr))))

Run the code above in your browser using DataLab