Re: [R] Frequency and Phase Spectrograms

From: Dieter Menne <>
Date: Thu, 6 Dec 2007 18:34:19 +0000 (UTC)

Todd Remund <tkremund98 <at>> writes:

> I know that there is a function, (spectro3D), that produces the Power
Spectrogram. Are there R functions
> that produce the Frequency Spectrogram and the Phase Spectrogram? Thank you
for your time.

fft in stats gives you all you need, possibly combined with some time window in package signal, which also has some higher level stuff. Do you really want to interpret the "frequency spectrum" (whatever it is) with real, imaginary part and signs?

The docs of spectro3D gives makes me cringe:

>>Following Heisenberg uncertainty principle, the short-term Fourier transform cannot be precised in both time and frequency. >>

I know that's written in quite a few books, but that upside-down thinking has been a source of confusion for generations of students and professors (of biology, to say).

Dieter mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 06 Dec 2007 - 18:55:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 06 Dec 2007 - 19:30:18 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.