- wave
A 'wave' object produced by readWave
or similar functions.
- wl
A numeric vector of length 1 specifying the window length of the spectrogram. Default
is 512.
- wn
Character vector of length 1 specifying window name. Default is
"hanning". See function ftwindow
for more options.
- ovlp
Numeric vector of length 1 specifying the percent overlap between two
consecutive windows, as in spectro
. Default is 70.
- dB
Character vector of length 1 controlling the amplitude weights as in
spectro
. Default is 'max0'.
- collevels
Numeric. Levels used to partition amplitude range as in spectro
.
Default is NULL
.
- selec.col
Character vector of length 1 specifying the color to be used to highlight selection.
See 'col.clm' for specifying unique colors for each selection. Default is 'red2'. Ignored if 'col.cm'
and 'X' are provided.
- col.clm
Character vector of length 1 indicating the name of the column in 'X' that contains the
color names for each selection. Ignored if X == NULL
or interactive != NULL
. Default is NULL
.
- base.col
Character vector of length 1 specifying the color of the background spectrogram.
Default is 'black'.
- bg.col
Character vector of length 1 specifying the background color for both base
and highlighted spectrograms. Default is 'white'.
- strength
Numeric vector of length 1 controlling the strength of the highlighting color (actually how many times it is repeated in the internal color palette). Must be a positive integer. Default is 1.
- cexlab
Numeric vector of length 1 specifying the relative size of axis
labels. See spectro
. Default is 1.
- cexaxis
Numeric vector of length 1 specifying the relative size of axis. See
spectro
. Default is 1.
- tlab
Character vector of length 1 specifying the label of the time axis.
- flab
Character vector of length 1 specifying the label of the frequency axis.
- title
Logical argument to add a title to individual spectrograms.
Default is TRUE
.
- axisX
Logical to control whether time axis is plotted. Default is TRUE
.
- axisY
Logical to control whether frequency axis is plotted. Default is TRUE
.
- flim
A numeric vector of length 2 for the frequency limit (in kHz) of
the spectrogram, as in spectro
. Default is NULL
.
- rm.zero
Logical indicated if the 0 at the start of the time axis should be removed. Default is FALSE
.
- X
Optional. Data frame containing columns for start and end time of signals ('start' and 'end') and low and high frequency ('bottom.freq' and 'top.freq').
- fast.spec
Logical. If 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' spectrograms. Palette colors gray.1
, gray.2
,
gray.3
offer
decreasing darkness levels.
- t.mar
Numeric vector of length 1. Specifies the margins adjacent to the start and end points to be added when highlighting selection. Default is NULL
.
- f.mar
Numeric vector of length 1. Specifies the margins adjacent to the low and high frequencies to be added when highlighting selection. Default is NULL
.
- interactive
Numeric. Allow user to interactively select the signals to be highlighted by clicking
on the graphic device. Users must select the opposite corners of a square delimiting the spectrogram region
to be highlighted. Controls the number of signals that users would be able to select (2 clicks per signal).
- add
Logical. If TRUE
new highlighting can be applied to the current plot (which means
that the function with add = FALSE
should be run first). Default is FALSE
.