better.spectro {callsync} | R Documentation |
better.spectro
Description
Creates a spectrogram and plots it to the current window.
Usage
better.spectro(
wave,
main = "",
wl = 512,
ovl = wl/2,
xlim = NULL,
ylim = NULL,
mar = rep(3, 4),
cex.main = 1,
cex.axis = 0.75,
cex.lab = 0.5
)
Arguments
wave |
wave object, e.g., from 'load.wave' or 'readWave'. |
main |
character, title for the spectrogram. Default is no title. |
wl |
numeric, window length in samples. Default is '512'. |
ovl |
numeric, overlap in samples. Default is 'wl/2'. |
xlim |
numeric vector of length 2, limits for the x-axis. Default is no limits. |
ylim |
numeric vector of length 2, limits for the y-axis. Default is no limits. |
mar |
numeric vector of length 4, the margins of the plot for the 'impagep' function. Default is 'rep(3, 4)'. |
cex.main |
numeric the relative size of the title |
cex.axis |
numeric the relative size of the axis labels. |
cex.lab |
numeric the relative size of the axis titles |
Value
Plots the spectrogram to current window.
Examples
require(callsync)
require(seewave)
require(tuneR)
path_git = 'https://raw.githubusercontent.com'
path_repo = '/simeonqs/callsync/master/tests/testthat/files'
file_1 = '/wave_1.wav'
url_1 = paste0(path_git, path_repo, file_1)
local_file_1 = paste(tempdir(), file_1, sep = '/')
if(!file.exists(local_file_1))
download.file(url_1, destfile = local_file_1, mode = 'wb',)
wave = readWave(local_file_1)
better.spectro(wave)
[Package callsync version 0.2.3 Index]