hc_text-GenomicHilbertCurve-method {HilbertCurve} | R Documentation

## Add text to Hilbert curve

### Description

Add text to Hilbert curve

### Usage

    ## S4 method for signature 'GenomicHilbertCurve'
    hc_text(object, gr, labels, gp = gpar(), ...)

### Arguments

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

### Details

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

### Value

Refer to `hc_text,HilbertCurve-method`

### Author(s)

Zuguang Gu <z.gu@dkfz.de>

### Examples

    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))

[Package HilbertCurve version 1.10.1 Index]