Answers.Body: <p>Here are the spectrogram settings I have come to like the best (for a synthetic rainforest rocket frog call):</p>
  <pre><code>library(seewave)
  library(viridis)
  
  spectro(Rf_synth,
          wl = 512,
          ovlp = 90,
          osc = TRUE,
          grid = FALSE,
          palette = turbo,
          coly0 = &quot;black&quot;,
          collevels = seq(-30, 0, 0.5),
          heights = c(1,1),
          flim = c(5, 8),
          tlim = c(0, 0.2))
  rug(x = seq(5, 8 ,0.1), ticksize = 0.01, side = 2)
  </code></pre>
  <p>Like you say, windows lengths and overlaps will depend on your signal. The colours in the 'viridis' library are color-blind friendly, and 'turbo' looks the best in my opinion ('magma' or 'inferno' are also visually pleasant, in my opinion). The rug() function just add little ticks on the frequency axis.
  It looks like this:</p>
  <p><a href="https://i.sstatic.net/YS0M8.png" rel="noreferrer"><img src="https://i.sstatic.net/YS0M8.png" alt="Spectrogram of synthetic Silverstoneia flotator note" /></a></p>
  <p>I would like very much to see other people's spectrograms and settings too!</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-02T16:21:24.107Z
Answers.Text: Are you using these same settings for other signals? Especially those that might be longer in duration and cover broader frequency bands? I'm trying to figure out the same thing as Carly but primarily focusing on soundscape-level recordings
Answers.UserDisplayName: dtsavage
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-11-01T02:33:28.013Z
Answers.LastActivityDate: 2022-11-01T02:35:24.887Z
Answers.LastEditDate: 2022-11-01T02:35:24.887Z
Answers.UserDisplayName: Matías Muñoz
Body: <p>I need to include spectrograms in a manuscript and was wondering what peoples' preferred R packages/code settings/etc. were for high-quality spectrogram plots? I know there are a bunch of options in terms of R packages, e.g., signal, seewave, warbleR and then tons of different spectrogram plotting options for each; what are your preferences? Even down to things like palettes/color scales, etc. Obviously exact spectrogram settings will be dependent on the specific signal, but I'm more thinking about like the plotting settings for spectrogram functions in the aforementioned packages. Any insights on this would be much appreciated!</p>
  
Tags: <analysis><r><spectrogram>
Title: Preferred R code settings/packages for publication-level spectrograms
ThreadText: # Preferred R code settings/packages for publication-level spectrograms
  
  (Asked by: username_0 on 2022-09-23)
  
  I need to include spectrograms in a manuscript and was wondering what peoples' preferred R packages/code settings/etc. were for high-quality spectrogram plots? I know there are a bunch of options in terms of R packages, e.g., signal, seewave, warbleR and then tons of different spectrogram plotting options for each; what are your preferences? Even down to things like palettes/color scales, etc. Obviously exact spectrogram settings will be dependent on the specific signal, but I'm more thinking about like the plotting settings for spectrogram functions in the aforementioned packages. Any insights on this would be much appreciated!
  
  **Tags:** analysis, r, spectrogram
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-11-01. Score: 5
  
  Here are the spectrogram settings I have come to like the best (for a synthetic rainforest rocket frog call):
  library(seewave)
  library(viridis)
  
  spectro(Rf_synth,
          wl = 512,
          ovlp = 90,
          osc = TRUE,
          grid = FALSE,
          palette = turbo,
          coly0 = "black",
          collevels = seq(-30, 0, 0.5),
          heights = c(1,1),
          flim = c(5, 8),
          tlim = c(0, 0.2))
  rug(x = seq(5, 8 ,0.1), ticksize = 0.01, side = 2)
  
  Like you say, windows lengths and overlaps will depend on your signal. The colours in the 'viridis' library are color-blind friendly, and 'turbo' looks the best in my opinion ('magma' or 'inferno' are also visually pleasant, in my opinion). The rug() function just add little ticks on the frequency axis.
  It looks like this:
  
  I would like very much to see other people's spectrograms and settings too!
  
  > **Comments:**
  > **username_2**: Are you using these same settings for other signals? Especially those that might be longer in duration and cover broader frequency bands? I'm trying to figure out the same thing as Carly but primarily focusing on soundscape-level recordings  
  
  ---
  
  