Re: [Rd] spec.pgram (PR#7124)

From: <>
Date: Thu 22 Jul 2004 - 16:55:55 EST wrote:

> Full_Name: david stoffer
> Version: 1.9.0
> OS: win xp pro
> Submission from: (NULL) (

This is not a bug.

Please read the R FAQ and the posting guide ( re. what a bug is and how to report bugs.

Please check against a recent version of R when reporting bugs (at least R-1.9.1, or R-patched or R-devel).

> spec.pgram is supposed to plot the periodogram values in dB, i.e., 10log10(.).

No! It is supposed to do what is documented.

?spec.pgram tells us that plot.spec() does the plotting. And ?plot.spec tells us that "conventional log scale" is used as the default. You can explicitly set the argument log="dB" in order to apply the 10*log10() transformation.

Uwe Ligges

> the value on the graph look ok, but the y-axis, plotted on dB scale NEVER shows
> negative values. in other words, all values are shown as positive.
> ______________________________________________
> mailing list
> mailing list Received on Thu Jul 22 17:02:06 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:03 EST