hc_points-GenomicHilbertCurve-method {HilbertCurve} | R Documentation

## Add points to the Hilbert curve

### Description

Add points to the Hilbert curve

### Usage

    ## S4 method for signature 'GenomicHilbertCurve'
    hc_points(object, gr,
        np = max(c(2, 10 - hc_level(object))), size = unit(1, "char"),
        pch = 1, gp = gpar(), mean_mode = c("w0", "absolute", "weighted"),
        shape = "circle")

### Arguments

`object` | a `GenomicHilbertCurve-class` object
`gr` | a `GRanges` object which contains the genomic regions to be mapped to the curve
`np` | pass to `hc_points,HilbertCurve-method`
`size` | size of points when `np <= 1`, pass to `hc_points,HilbertCurve-method`
`pch` | shape of the points when `np <= 1`, pass to `hc_points,HilbertCurve-method`
`gp` | graphic parameters of the points when `np <= 1`, pass to `hc_points,HilbertCurve-method`
`mean_mode` | pass to `hc_points,HilbertCurve-method`
`shape` | shape of the points when `np >= 2`, pass to `hc_points,HilbertCurve-method`

### Details

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

### Value

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

[Package HilbertCurve version 1.12.0 Index]