hc_segments-GenomicHilbertCurve-method {HilbertCurve} | R Documentation

## Add line segments to Hilbert curve

### Description

Add line segments to Hilbert curve

### Usage

    ## S4 method for signature 'GenomicHilbertCurve'
    hc_segments(object, gr, gp = gpar(lty = 1, lwd = 1, col = 1))

### Arguments

`object` | a `GenomicHilbertCurve-class` object
`gr` | a `GRanges` object which contains the genomic regions to be mapped to the curve
`gp` | pass to `hc_segments,HilbertCurve-method`

### Details

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

### Value

Refer to `hc_segments,HilbertCurve-method`

### Author(s)

Zuguang Gu <z.gu@dkfz.de>

### Examples

    require(circlize)
    require(GenomicRanges)
    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))))

[Package HilbertCurve version 1.22.0 Index]