I am using the EMD package for R. This package has a spectrogram function for displaying a Hilbert Spectrum (calculated with hilbertspec). The output however, is really vague and black-white.
This function does not seem to have an option for outputting color images. How can I get the spectrum displayed clearly and if possible in color.
The gray levels are hardcoded in the
spectrogramfunction (gray()), to override this setting you could use, for instance, the following:Another option is to use the source of the
spectrogramfunction to define your own plot function which has an argument for the color palette.