Learn R Programming

HilbertCurve (version 1.2.2)

hc_text-GenomicHilbertCurve-method: Add text to Hilbert curve

Description

Add text to Hilbert curve

Usage

## S3 method for class 'GenomicHilbertCurve':
hc_text(object, gr, labels, gp = gpar(), ...)

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_text,HilbertCurve-method.

Examples

Run this code
require(circlize)
bed = generateRandomBed(nr = 20)
gr = GRanges(seqnames = bed[[1]], ranges = IRanges(bed[[2]], bed[[3]]))
hc = GenomicHilbertCurve()
hc_text(hc, gr, labels = sample(letters, nrow(bed), replace = TRUE))

Run the code above in your browser using DataLab