<p>Might be a bit late, but here is a function from another package that might do what you want:</p>
<pre><code>install.packages(&quot;dynaSpec&quot;)
?dynaSpec::scrolling_spectro()
</code></pre>

CC BY-SA 4.0
2023-09-04T14:47:49.847Z
2023-09-25T09:32:53.203Z
2023-09-25T09:32:53.203Z
Dan
<p>My answer is not language specific but I suggest to first decimate the audio data to a sampling frequency that is twice the desired visible frequency before using the av_spectrogram_video.</p>

CC BY-SA 4.0
2023-06-19T16:35:32.063Z
2023-06-19T16:59:16.447Z
2023-06-19T16:59:16.447Z
WMXZ
<p>I'm trying out producing some spectrogram videos in R for presentations and sharing through av_spectrogram_video (from the av package), but would like to crop the spectrogram to zoom in on lower frequencies, this doesn't seem to be an option in the plotting function - does anyone know a better way to do this or another package?</p>
<p>Thanks</p>

<r><spectrogram><code>
Editing av_spectrogram_video R
# Editing av_spectrogram_video R

(Asked by: username_0 on 2023-05-17)

I'm trying out producing some spectrogram videos in R for presentations and sharing through av\_spectrogram\_video (from the av package), but would like to crop the spectrogram to zoom in on lower frequencies, this doesn't seem to be an option in the plotting function - does anyone know a better way to do this or another package?

Thanks

**Tags:** r, spectrogram, code


---

## 2 answers

### Answer by username_1 on 2023-09-04. Score: 2

Might be a bit late, but here is a function from another package that might do what you want:

```
install.packages("dynaSpec")
?dynaSpec::scrolling_spectro()

```


---

### Answer by username_2 on 2023-06-19. Score: 0

My answer is not language specific but I suggest to first decimate the audio data to a sampling frequency that is twice the desired visible frequency before using the av\_spectrogram\_video.


---

