View source: R/full_spectrogram2pdf.R
full_spectrogram2pdf | R Documentation |
full_spectrogram2pdf
combines full_spectrograms
images in .jpeg format to a single pdf file.full_spectrogram2pdf
combines full_spectrograms
images in .jpeg format to a single pdf file.
full_spectrogram2pdf(
keep.img = TRUE,
overwrite = FALSE,
parallel = 1,
path = NULL,
pb = TRUE
)
keep.img |
Logical argument. Indicates whether jpeg files should be kept (default) or remove. (including sound file and page number) should be magnified. Default is 1. |
overwrite |
Logical argument. If |
parallel |
Numeric. Controls whether parallel computing is applied. It specifies the number of cores to be used. Default is 1 (i.e. no parallel computing). |
path |
Character string containing the directory path where the sound files are located.
If |
pb |
Logical argument to control progress bar. Default is |
The function combines spectrograms for complete sound files from the full_spectrograms
function into
a single pdf (for each sound file).
Image files in pdf format with spectrograms of entire sound files in the working directory.
Marcelo Araya-Salas (marcelo.araya@ucr.ac.cr)
Araya-Salas, M., & Smith-Vidaurre, G. (2017). warbleR: An R package to streamline analysis of animal acoustic signals. Methods in Ecology and Evolution, 8(2), 184-191.
full_spectrograms
, catalog2pdf
## Not run:
# save sound file examples
data(list = c("Phae.long1", "Phae.long2"))
writeWave(Phae.long1, file.path(tempdir(), "Phae.long1.wav"))
writeWave(Phae.long2, file.path(tempdir(), "Phae.long2.wav"))
full_spectrograms(
sxrow = 2, rows = 8, pal = reverse.heat.colors, wl = 300,
it = "jpeg", path = tempdir()
)
# now create single pdf removing jpeg
full_spectrogram2pdf(keep.img = FALSE, path = tempdir())
# check this floder
tempdir()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.