specreator
creates spectrograms of signals selected by manualoc
or autodetec
.specreator(X, wl = 512, flim = c(0, 22), wn = "hanning", pal
= reverse.gray.colors.2, ovlp = 70, inner.mar = c(5, 4, 4, 2), outer.mar =
c(0, 0, 0, 0), picsize = 1, res = 100, cexlab = 1, title = TRUE,
propwidth = FALSE, xl = 1, osci = FALSE, gr = FALSE, sc = FALSE, line = TRUE,
mar = 0.05, it = "jpeg", parallel = 1, path = NULL, pb = TRUE, fast.spec = FALSE, ...)
spectro
. Default is c(0, 22).ftwindow
for more options.spectro
. Default is reverse.gray.colors.2.spectro
. Default is 70.par
.par
.TRUE
.spectro
.TRUE
.FALSE
.TRUE
. Default is 1.spectro
. Default is FALSE
.FALSE
.FALSE
.TRUE
.NULL
(default) then the current working directory is used.TRUE
. Note that progress bar is only used
when parallel = 1.TRUE
then image function is used internally to create spectrograms, which substantially
increases performance (much faster), although some options become unavailable, as collevels, and sc (amplitude scale).
This option is indicated for signals with high background noise levels. Palette colors gray.1
, gray.2
,
gray.3
, topo.1
and rainbow.1
(which should be imported from the package monitoR) seem
to work better with 'fast' spectograms. Palette colors gray.1
, gray.2
,
gray.3
offer
decreasing darkness levels. THIS IS STILL BEING TESTED.spectro
, so it takes the same arguments.spectro
function from the 'seewave' package. The function creates spectrograms for visualization of vocalizations.
Setting inner.mar to c(4,4.5,2,1) and outer.mar to c(4,2,2,1) works well when picsize = 2 or 3.
Title font size, inner.mar and outer.mar (from mar and oma) don't work well when osci or sc = TRUE,
this may take some optimization by the user. Setting 'fast' argument to TRUE significantly increases speed, although
some options become unavailable, as collevels, and sc (amplitude scale). This option is indicated for signals with
high background noise levels.trackfreqs
for creating spectrograms to visualize
frequency measurements by specan
, snrspecs
for
creating spectrograms to optimize noise margins used in sig2noise
Other spectrogram.creators: dfDTW
,
dfts
, ffDTW
,
ffts
, snrspecs
,
sp.en.ts
, trackfreqs
## Not run: ------------------------------------
#
# # First set empty folder
# setwd(tempdir())
# data(list = c("Phae.long1", "Phae.long2","selec.table"))
# writeWave(Phae.long1, "Phae.long1.wav") #save sound files
# writeWave(Phae.long2, "Phae.long2.wav")
#
# # make spectrograms
#
# specreator(selec.table, flim = c(0, 11), res = 300, mar = 0.05, wl = 300)
#
# #' #check this folder!!
# getwd()
## ---------------------------------------------
Run the code above in your browser using DataLab