plotFTSpec: Plot fourier/time spectral analysis

Description Usage Arguments Examples

View source: R/PlotFTSpec.R

Description

Plot output of evolFFT and evolMTM in TSAUMN

Usage

1
2
3
plotFTSpec(evol, Log = F, fscale = c("Frequency", "Octave", "Period"),
  pal = colorRampPalette(RColorBrewer::brewer.pal(11, "Spectral"))(256),
  xlab = "Time", ylab = "Frequency", dynRange = 0)

Arguments

evol

return value of evolFFT or evolMTM

Log

plot log10 of power spectrum, defaults to FALSE

fscale

one of "Frequency" (default), "Period" or "Octave" The latter two display period on a log10 scale and frequency on a log2 scale respectively. plot log2 of frequency, defaults to FALSE

pal

color palette, defaults to a dark spectrum

xlab

label for time axis, defaults to "Time"

ylab

label for frequency/period axis, defaults to "Frequency" or "Period" as appropriate

dynRange

orders of magnitude beneath peak to include in color scale. Defaults to full range.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
require( RColorBrewer )
# create chirp signal
n <- 1024
t <- 1:n
a <- 4 * n
x <- cos( 2 * pi * t^2 / a )
# perform time-frequency analysis of chirp
evol <- evolFFT( x, deltat = 1, nwin = 200, nstep = 5 )
# plot result
plotFTSpec( evol )

jrevenaugh/TSAUMN documentation built on Nov. 8, 2019, 2:20 p.m.