Learn R Programming

HilbertVis (version 1.30.0)

hilbertDisplayThreeChannel: Show up to three data vectors in the Hilbert curve display GUI.

Description

This is a variant of hilbertDisplay that takes up to three long data vector but does not display them in different panels (allowing to switch with the ``Previous'' and ``Next'' buttons but instead put them in one picture, using the three colour channels to overlay them. This is look for correlations in spatial distribution of the different data vectors.

Usage

hilbertDisplayThreeChannel(
   dataRed, 
   dataGreen = 0, 
   dataBlue = 0, 
   naColor = col2rgb("gray"), 
   fullLength = max(length(dataRed), length(dataGreen), length(dataBlue)), 
   portrait = FALSE)

Arguments

dataRed
The data to be displayed in the red colour channel, to be provided as a numeric vector with values between 0 (black) and 1 (bright red). You may either pass an ordinary R vector or an Rle vector as defined in the IRanges package.
dataGreen
As dataRed but for the green channel.
dataBlue
As dataRed but for the blue channel.
naColor
The color to use to indicate NA.
fullLength
The vector length that should correspond to the full display. By default, the length of the longest data vector. It may make sense to round up to the next power of two.
portrait
Whether to arrange the buttons to the right of the display. Useful on small screens.

Value

  • Invisible NULL.

See Also

hilbertDisplay