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 (; Baker et al. (2015)). The zcjs package (Baker 2022) imports this visualisation functionality into R.

The following code installs the zcjs package.


To load the package:


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

5.2.1 Customising a zcjs plot



———. 2022. Zcjs.
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).