- X
Object of class 'data.frame', 'selection_table' or 'extended_selection_table' (the last 2 classes are created by the function selection_table
from the warbleR package) with the reference to the test sounds (typically the output of align_test_files
). Must contain the following columns: 1) "sound.files": name of the .wav files, 2) "selec": unique selection identifier (within a sound file), 3) "start": start time and 4) "end": end time of selections, 5) "bottom.freq": low frequency for bandpass, 6) "top.freq": high frequency for bandpass and 7) "sound.id": ID of sounds used to identify counterparts across distances. Each sound must have a unique ID within a distance.
- Y
object of class 'data.frame', 'selection_table' or 'extended_selection_table' (the last 2 classes are created by the function selection_table
from the warbleR package) with the master sound file annotations. This should be the same data than that was used for finding the position of markers in find_markers
. It should also contain a 'sound.id' column.
- hop.size
A numeric vector of length 1 specifying the time window duration (in ms). Default is 11.6 ms, which is equivalent to 512 wl for a 44.1 kHz sampling rate. Ignored if 'wl' is supplied. Can be set globally for the current R session via the "hop.size" option (see options
).
- wl
a vector with a single even integer number specifying the window length of the spectrogram, default is NULL
. If supplied, 'hop.size' is ignored. Odd integers will be rounded up to the nearest even number. Can be set globally for the current R session via the "wl" option (see options
).
- ovlp
Numeric vector of length 1 specifying the percentage of overlap between two consecutive windows, as in spectro
. Default is 0. Can be set globally for the current R session via the "ovlp" option (see options
).
- path
Character string containing the directory path where the sound files are found. Only needed when 'X' is not an extended selection table. If not supplied the current working directory is used. Can be set globally for the current R session via the "sound.files.path" option (see options
).
- collevels
A numeric vector of length 3. Specifies levels to partition the amplitude range of the spectrogram (in dB). The more levels the higher the resolution of the spectrogram. Default is seq(-120, 0, 1).
- palette
Color palette function for spectrogram. Default is viridis
. See spectro
for more palettes. Palettes as gray.2
may work better when fast.spec = TRUE
(an argument that can be passed to the internal spectrogram function using "...").
- duration
A numeric vector of length 1. Specifies the overall duration of the clip that will be plotted. Notice that only the initial part of the test files are plotted as this is enough to tell the precision of the alignment.
- mar
numeric vector of length 1. Specifies the minimum margins adjacent (before and after) to the start of the marker used for checking alignments (see 'marker' argument). Default is 0.2.
- step.lengths
Numeric vector of length 2 indicating the time length (in ms) of short (min(step.lengths)) and long steps (max(step.lengths)) for manually aligning spectrograms. Default is c(5, 30)
.
- flim
A numeric vector of length 2 indicating the highest and lowest frequency limits (kHz) of the spectrogram, as in spectro
. Default is NULL
which will plot spectrograms in the full frequency range (0 - nyquist frequency).
- label.col
Character string controlling the color of lines and sound ID labels.
- ext.window
Logical. If TRUE
then and external graphic window is used.Dimensions can be set using the 'width' and 'height' arguments. Default is TRUE
.
- width
Numeric vector of length 1. Single value (in inches) indicating the width of the output image files. Default is 10.
- height
Numeric vector of length 1. Single value (in inches) indicating the height of the output image files. Default is 5.
- srt
Numeric argument of length 1. The rotation (in degrees) of the sound id labels. Default is 0.
- cex
Numeric argument of length 1controlling the size of sound id text labels. Default is 1.
- 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 (amplitude scale). Default is FALSE
.
- marker
Character string with the name of the marker to be used as the main reference for checking/adjusting time alignments. Default is 'start_marker'. Note that this can take any of the sound IDs in 'Y$sound.id'.
- grid
Numeric vector of length 1 controlling the spacing between vertical lines on the spectrogram. Default is 0.2 s. Use 0 to remove grid.
- ...
Additional arguments to be passed to the internal spectrogram
creating function for customizing graphical output. The function is a modified
version of spectro
, so it takes the same arguments.