levelplot to display a hilbert image matrix as
it is returned by hilbertImage. Alternatively to levelplot,
EBImage is available as well.
showHilbertImage( mat, palettePos = colorRampPalette(c("white", "red"))(300), paletteNeg = colorRampPalette(c("white", "blue"))(300), maxPaletteValue = max(abs(mat)), mode = c("lattice", "EBImage", "EBImage-batch") )hilbertImage. mat (including 0). mat. levelplot from the lattice package is used. An (invisible) lattice object
is returned that can be displayed with show. In interactive mode, the image is displayed automatically.
For mode "EBImage" the image is displayed with the EBImage package, and for "EBImage-batch", the same image is
produced and not displayed but rather returned as a value suitable to be passed to EBImage's display function.
hilbertImage # See ?hilbertImage for examples.
Run the code above in your browser using DataLab