hc_segmented_points-HilbertCurve-method: Add points to the Hilbert curve

Description Usage Arguments Details Value Author(s) Examples

Description

Add points to the Hilbert curve

Usage

1
2
3
4
5
## S4 method for signature 'HilbertCurve'
hc_segmented_points(object, ir, x1 = NULL, x2 = NULL, gp = gpar(),
    np = max(c(2, 10 - hc_level(object))),
    mean_mode = c("w0", "absolute", "weighted"),
    shape = "circle")

Arguments

object

A HilbertCurve-class object.

ir

an IRanges object which specifies the input intervals.

x1

if start positions are not integers, they can be set by x1.

x2

if end positions are not integers, they can be set by x2.

np

number of points (a circle or a square, ...) that are put in a segment.

gp

graphic parameters for points. It should be specified by gpar. The size of the points can be set here because the size of points are determined by np argument.

mean_mode

when a segment in the curve overlaps with intervals in ir, how to calculate the mean values for this segment. See explanation in hc_points.

shape

shape of points. Possible values are "circle", "square", "triangle", "hexagon", "star".

Details

Every segment on the curve is split by np points.

This function is used internally, please use hc_points,HilbertCurve-method directly.

Value

A data frame which contains coordinates (in the 2D space) of points.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

1
2
# see documentation of hc_points
NULL

eilslabs/HilbertCurve documentation built on May 16, 2019, 1:23 a.m.