dynspec(wave, f, wl = 512, wn = "hanning", zp = 0,
ovlp = 0, fftw = FALSE, norm = FALSE, dB = NULL, dBref = NULL, plot = TRUE,
title = TRUE, osc = FALSE, flab = "Frequency (kHz)",
alab = "Amplitude", alim = NULL, flim = c(0, f/2000),
type = "l", from = NULL, to = NULL, envt = NULL,
msmooth = NULL, ksmooth = NULL, colspec = "black",
coltitle = "black", colbg = "white", colline = "black",
colaxis = "black", collab = "black", cexlab = 1,
fontlab = 1, colwave = "black",
coly0 = "lightgrey", colcursor = "red", bty = "l")wave (in Hz). Does not need to be specified if embedded in wave.at is not null, length of the window for the analysis
(even number of points, by defaults = 512).ftwindow (by default "hanning").Details.TRUE calls the function FFT of the
library fftw. See Notes of the spectro.TRUE compute a normalised sliding spectrum.dB is not NULL. NULL by default
but should be set to 2*10e-5 for a 20 microPa reference (SPL).TRUE plots in an ew graphics device the successive
spectra sliding along the time wave (by default TRUE).TRUE adds a title with the time position of the current
spectrum along the time wave.TRUE plots an oscillogram beneath
the sliding spectrum with a cursor showing the position of the
current spectrum (by default FALSE).plot for details (by default "l" for lines).env.env is not NULL,
a vector of length 2 to smooth the amplitude envelope with a
mean sliding window. The first component is the window length
(in number of points). The second component is the overlap between
title is TRUE, colour of the title.osc is TRUE).osc is TRUE).osc is TRUE).osc is TRUE).wl/2.norm if you wish to have each spectrum normalised, i.e.
with values between 0 and 1 or maximised to 0 dB when dB is TRUE.
The function requires the package spectro, spectro3D, wf, spec,
fft, oscillo.data(sheep)
require(rpanel)
dynspec(sheep,f=8000,wl=1024,ovlp=50,osc=TRUE)Run the code above in your browser using DataLab