Learn R Programming

HilbertCurve (version 1.2.2)

hc_rect-GenomicHilbertCurve-method: Add rectangles on Hilbert curve

Description

Add rectangles on Hilbert curve

Usage

## S3 method for class 'GenomicHilbertCurve':
hc_rect(object, gr, gp = gpar(fill = "red", col = "red"),
    mean_mode = c("w0", "absolute", "weighted"))

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

Run the code above in your browser using DataLab