hc_rect-GenomicHilbertCurve-method {HilbertCurve} | R Documentation

## Add rectangles on Hilbert curve

### Description

Add rectangles on Hilbert curve

### Usage

    ## S4 method for signature 'GenomicHilbertCurve'
    hc_rect(object, gr, gp = gpar(fill = "red", col = "red"),
        mean_mode = c("w0", "absolute", "weighted", "max_freq"))

### 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_rect,HilbertCurve-method`
`mean_mode` | pass to `hc_rect,HilbertCurve-method`

### Details

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

### Value

Refer to `hc_rect,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_rect(hc, gr, gp = gpar(fill = rand_color(length(gr))))

[Package HilbertCurve version 1.22.0 Index]