Chapter 5 Dynamic digital visualisations

5.1 Video spectrograms

5.2 zcjs: Zero-crossing File Visualisation

The zcjs JavaScript library was originally developed for displaying zero-crossing audio files (1.3.3) on the web as part of the BioAcoustica project (https://bio.acousti.ca; Baker et al. (2015)). The zcjs package (Baker 2022) imports this visualisation functionality into R.

The following code installs the zcjs package.

install.packages("devtools")
devtools::install_github("bioacoustica/zcjs-r")

To load the package:

library(zcjs)

The package comes with a demonstration file for testing the package’s functionality.

5.2.1 Customising a zcjs plot

x-compress

References

———. 2022. Zcjs. https://github.com/bioacoustica/zcjs-r.
Baker, Ed, Ben W. Price, S. D. Rycroft, Jon Hill, and Vincent S Smith. 2015. “BioAcoustica: A Free and Open Repository and Analysis Platform for Bioacoustics.” Database 2015 (bav054).