Description Usage Arguments Value Author(s) See Also Examples
View source: R/HilbertCurveDisplay.R
Display one or several long integer vectors in an interactive fashion by means of the Hilbert curve.
See the vignette for a full explanation.
1 2 3 4 5 6 7 8 9 10 11 12 | 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
1 2 3 | random <- c( as.integer( runif(100000)*30 ) )
ramp <- c( as.integer( 0:19999/100 ) )
try( hilbertDisplay( random, ramp ) )
|
Loading required package: HilbertVis
Loading required package: grid
Loading required package: lattice
| Cannot connect to an X display. Most functionality of
| HilbertVisGUI will be unavailable. Make sure that the DISPLAY
| environment variable is set properly.
Warning message:
In dyn.load(file, DLLpath = DLLpath, ...) : Cannot connect to X display.
Error in hilbertDisplay(random, ramp) :
R_display_hilbert: X display unavailable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.