hilbertDisplay {HilbertVisGUI} | R Documentation |
Display one or several long integer vectors in an interactive fashion by means of the Hilbert curve.
See the vignette for a full explanation.
hilbertDisplay( ..., palettePos = colorRampPalette( c( "white", "red" ) )( 300 ), paletteNeg = colorRampPalette( c( "white", "blue" ) )( length(palettePos) ), maxPaletteValue = NULL, naColor = "gray", plotFunc = simpleLinPlot, names=NULL, sameScale=TRUE, pow2=FALSE, portrait=TRUE, fullLengths = NULL )
... |
The data vectors to be visualized. This may be integer or real vectors, either
as ordinary R vectors or as |
palettePos |
The color palette used to visualize positive valued bins in the data. This must be either be a character vector of valid color names. If no palette is supplied, a ramp from white to red is used. |
paletteNeg |
The color palette for bins with negative values. Both palettes must have the same number of colours. |
maxPaletteValue |
The absolute bin value that should correspond to the end of the two palettes. (The beginning of the palettes always represents 0.) Within the graphical user interface, buttons are provided to adjust this interactively. If no value is provided, the median of the absolute values of maxima and minima of the data vectors is used. |
naColor |
The color to be used for bins which contain NAs or correspond to data outside the limits of the data vector. Pass a color name or a triple of RGB values. By default, "gray" is used. |
plotFunc |
An R function that is called if you use the "Linear plot" function
offer by HilbertCurveDisplay's GUI. If you enable this function and then click on a
pixel in the display, the function supplied as |
names |
The names of the sequences. A character vector. If not supplied, the
expressions used in the '...' argument, as reported by |
sameScale |
Setting this argument to |
pow2 |
Setting thsi argument to |
portrait |
Setting this option to |
fullLengths |
This option allows you to manually control the padding of
vectors with |
Returns an invisible NULL.
Simon Anders, EMBL-EBI, sanders@fs.tum.de
random <- c( as.integer( runif(100000)*30 ) ) ramp <- c( as.integer( 0:19999/100 ) ) try( hilbertDisplay( random, ramp ) )