Re: [R] How do I normalise a power spectral density analysis?

2006-01-31 Thread Tom C Cameron
Hi Spencer, yes thanks it does help. In short I have resolved the issue. In length, not directly, as I have not found a way to ask R to actually plot frequency vs. period directly, I have scoured the R help pages and Venebles Ripley but the call to R spectrum() or periodogram() generates error

Re: [R] How do I normalise a power spectral density analysis?

2006-01-31 Thread Prof Brian Ripley
What's wrong with z - spec.pgram(ldeaths, plot = FALSE) plot(1/z$freq, z$spec, log=y, xlab=period, ylab=power) ? On Tue, 31 Jan 2006, Tom C Cameron wrote: Hi Spencer, yes thanks it does help. In short I have resolved the issue. In length, not directly, as I have not found a way to ask R to

Re: [R] How do I normalise a power spectral density

2006-01-31 Thread Leif Kirschenbaum
(p2[[2]],p2[[1]],type=l,col=blue) points(p1[[2]],p1[[1]],type=l,col=brown) points(p0[[2]],p0[[1]],type=o,col=black) Message: 113 Date: Mon, 30 Jan 2006 17:45:58 -0800 From: Spencer Graves [EMAIL PROTECTED] Subject: Re: [R] How do I normalise a power spectral density analysis? To: Tom C

Re: [R] How do I normalise a power spectral density

2006-01-31 Thread Gabor Grothendieck
[[1]],type=o,col=black) Message: 113 Date: Mon, 30 Jan 2006 17:45:58 -0800 From: Spencer Graves [EMAIL PROTECTED] Subject: Re: [R] How do I normalise a power spectral density analysis? To: Tom C Cameron [EMAIL PROTECTED] Cc: r-help@stat.math.ethz.ch Message-ID: [EMAIL

Re: [R] How do I normalise a power spectral density analysis?

2006-01-30 Thread Spencer Graves
Since I have not seen a reply to this post, I will offer a comment, even though I have not used spectral analysis myself and therefore have you intuition about it. First, from the definitions I read in the results from, e.g., RSiteSearch(time series power spectral density) [e.g.,

[R] How do I normalise a power spectral density analysis?

2006-01-27 Thread Tom C Cameron
Hi everyone Can anyone tell me how I normalise a power spectral density (PSD) plot of a periodical time-series. At present I get the graphical output of spectrum VS frequency. What I want to acheive is period VS spectrum? Are these the same things but the x-axis scale needs transformed ? Any