Learn R Programming

HilbertCurve (version 1.2.2)

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

Description

Add points to the Hilbert curve

Usage

## S3 method for class '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
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".

Value

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

Details

Every segment on the curve is split by np points.

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

Examples

Run this code
# see documentation of hc_points
NULL

Run the code above in your browser using DataLab