Usage
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, trel = FALSE,
propwidth = FALSE, xl = 1, osci = FALSE, gr = FALSE, sc = FALSE, line = TRUE,
mar = 0.05, it = "jpeg")
Arguments
X
Data frame with results containing columns for sound file name (sound.files),
selection number (selec), and start and end time of signals (start and end).
The ouptut of manualoc
or
wl
A numeric vector of length 1 specifying the window length of the spectrogram, default
is 512.
flim
A numeric vector of length 2 for the frequency limit (in kHz) of
the spectrogram, as in spectro
. Default is c(0, 22). wn
Character vector of length 1 specifying window name. Default is
"hanning". See function ftwindow
for more options. pal
A color palette function to be used to assign colors in the
plot, as in spectro
. Default is reverse.gray.colors.2. ovlp
Numeric vector of length 1 specifying the percent overlap between two
consecutive windows, as in spectro
. Default is 70. inner.mar
Numeric vector with 4 elements, default is c(5,4,4,2).
Specifies number of lines in inner plot margins where axis labels fall,
with form c(bottom, left, top, right). See par
. outer.mar
Numeric vector with 4 elements, default is c(0,0,0,0).
Specifies number of lines in outer plot margins beyond axis labels, with
form c(bottom, left, top, right). See par
. picsize
Numeric argument of length 1. Controls relative size of
spectrogram. Default is 1. Ignored when propwidth is TRUE
.
res
Numeric argument of length 1. Controls image resolution.
Default is 100 (faster) although 300 - 400 is recommended for publication/
presentation quality.
cexlab
Numeric vector of length 1 specifying the relative size of axis
labels. See spectro
. title
Logical argument to add a title to individual spectrograms.
Default is TRUE
.
trel
Logical argument to add a time axis scale relative to the wave.
Default is FALSE
.
propwidth
Logical argument to scale the width of spectrogram
proportionally to duration of the selection. Default is FALSE
.
xl
Numeric vector of length 1. A constant by which to scale
spectrogram width if propwidth = TRUE
. Default is 1.
osci
Logical argument to add an oscillogram underneath spectrogram, as
in spectro
. Default is FALSE
. gr
Logical argument to add grid to spectrogram. Default is FALSE
.
sc
Logical argument to add amplitude scale to spectrogram, default is
FALSE
.
line
Logical argument to add red lines at start and end times of selection. Default is TRUE
.
mar
Numeric vector of length 1. Specifies the margins adjacent to the start and end points of selections,
dealineating spectrogram limits. Default is 0.05.
it
A character vector of length 1 giving the image type to be used. Currently only
"tiff" and "jpeg" are admitted. Default is "jpeg".