From ligges at statistik.uni-dortmund.de  Thu Jul 22 08:55:55 2004
From: ligges at statistik.uni-dortmund.de (ligges@statistik.uni-dortmund.de)
Date: Thu Jul 22 08:56:00 2004
Subject: [Rd] spec.pgram (PR#7124)
Message-ID: <20040722065555.A214EF32C@slim.kubism.ku.dk>

stoffer@pitt.edu wrote:

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

This is not a bug.

Please read the R FAQ and the posting guide 
(http://www.r-project.org/posting-guide.html) 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.
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel


[Rd] spec.pgram (PR#7124)
ligges@statistik.uni-dortmund.de