
Multiplot including Spectrogram, Mean Power Spectrum, and
Source:R/multiplot_ggplot.R
multiplot_ggplot.Rd
Multiplot including Spectrogram, Mean Power Spectrum, and
Usage
multiplot_ggplot(
wave,
cutoff = -35,
overlap = 95,
zeropad = 200,
scale_type = "dB",
heights = c(7, 3),
oscillo_label = ""
)
Arguments
- wave
A
Wave
object. The sound data to be plotted.- cutoff
Numeric. Amplitude cutoff in dB below the peak. Values below the cutoff will not be visible in the spectrogram. Default is -35 dB.
- overlap
Numeric. Window overlap percentage for the spectrogram. Default is 95.
- zeropad
Numeric. Zero padding for FFT in the spectrogram. Default is 200.
- scale_type
Character. Scale for the amplitude in the spectrogram, either "dB" or "Linear". Default is "dB".
- heights
Numeric vector. The relative heights of the spectrogram/mean spectrum plot and the oscillogram. Default is
c(7,3)
.- oscillo_label
Character. A title for the Y-axis of the oscillogram. Default is an empty string.
Examples
if (FALSE) { # \dontrun{
data(coryphoda)
multiplot_ggplot(coryphoda)
} # }