dynspec(wave, f, wl = 512, wn = "hanning", zp = 0,
ovlp = 0, norm = FALSE, dB = FALSE, 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")
at
is not null, length of the window for the analysis
(even number of points, by defaults = 512).ftwindow
(by default "hanning"
).Details
.TRUE
compute a normalised sliding spectrum.TRUE
returns the sliding spectrum in dB
(by default FALSE
).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
).plot
is FALSE
, this function returns a matrix which columns
correspond to the spectra computed along the time wave.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
, spec
,
fft
, oscillo
.data(sheep)
dynspec(sheep,f=8000,wl=1024,ovlp=50,osc=TRUE)
dev.off()
Run the code above in your browser using DataLab