Learn R Programming

e1071 (version 1.1-3)

plot.stft: Plots an Object of Type stft.

Description

An object of class stft is plotted as a gray scale image. The x-axis corresponds to time, the y-axis to frequency. If the default colormap is used, dark regions in the plot correspond to high values at the particular time/frequency location.

Usage

plot.stft(Y, col=gray(63:0/63))

Arguments

Y
An object of class stft as obtained by the function stft.
col
An optional colormap. By default 64 gray values are used, where white corresponds to the minimum value and black to the maximum.

Value

  • No return value. This function is only for plotting.

See Also

stft

Examples

Run this code
x<-rnorm(500)
y<-stft(x)
plot(y)

Run the code above in your browser using DataLab