Update 2 July 2026
You can also find code to do nice-looking figures of stereo audio-files in this github repository:
https://github.com/MatiasIMunoz/Nice-Oscillograms-Spectrograms
This code allows to use any color palette in R (see 'parula' to the right), and use a logarithmic frequency axis, following Cardoso (2025)
The library 'seewave' is the classic tool for making oscillogram and spectrogram figures using R. But these figures can also be done using the library 'dynaSpec' and 'ggplot2' to get slightly different results. See for example this figure from Muñoz et al., (2025):
You can make similar figures using the code below: