My question is how does 'plot' know to implicilty call the plot.ts (in the case of the full "exact" spectrum being fed back into the inverse?
Kevin ---- Dieter Menne <[EMAIL PROTECTED]> wrote: > <rkevinburton <at> charter.net> writes: > > > > > ff <- complex(length(fs)) > > ff[9] <- fs[9] > > ff[5] <- fs[5] > > > > Include the DC component: > > > > ff[1] <- fs[1] > > > > Take the inverse > > > > fi <- fft(ff, inverse=TRUE) / length(ff) > > > > Plot > > > > plot(fi) > > > > Notice that the plot is the Re vs. Im on the x and y axis' respectively. > > In one case, you plot a complex vector (gives points in complex plane), in the > other case a time series, where default assumption with a warning is to plot > the > real part only. > > Try > > plot(as.ts(fi)) > > and you see the latter, where implicitely plot.ts is called. > > Dieter > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.