Eleutherodactylus Research Studio · Fall 2026
2026-09-14
I am at posit::conf Monday and Wednesday. Class still happens, on your own schedule, and the work is due on Canvas.
Last Wednesday you read call duration, pulse count, and dominant frequency off a figure by eye. Today you get the same numbers from code, so that anyone can rerun them and get the same answer.
Two R packages do the work, both already installed on the pod:
Raven Lite, a point-and-click program, does the same job on your laptop. It is optional this semester. Everything we grade comes from R on the pod.
Every call description in the literature, including the one your team will write, comes down to this:
Steps 1, 2, 4, and 5 are code and run the same way every time. Step 3 is judgment. It is where two people measuring the same recording disagree, so it is the step you document.
A Wave object holds the column of numbers (44,100 per second) plus the sample rate and bit depth. duration() returns seconds. For an mp3, swap in readMP3(); everything after that is identical.
wl is the window length from last week: 512 samples resolves frequency, 256 resolves pulsesflim clips the frequency axis to where frogs liveosc = TRUE adds the oscillogram underneathTo zoom in on one call, cut the piece out first and then plot the piece:
(Passing from and to straight to spectro() with osc = TRUE trips a bug in seewave. Cut first.)
A selection table is a tidy table with one row per call and two columns you fill in from the spectrogram, start and end in seconds:
Reading these off the plot is the whole skill. Zoom until the pulses are individually visible and put start at the first pulse that stands clear of the background, end at the last. Then write your rule down in a sentence. Teammates who measure the other half of the recordings must use the same rule, or your numbers cannot be pooled.
Duration and interval are subtraction. lead() looks at the next row, so the last call has no interval (that is correct, not an error).
Dominant frequency needs the spectrum of each selection. A small function does it once; map2_dbl() applies it to every row:
Same selection table, 27 columns back. The ones that map to Köhler’s list:
duration, the same subtraction you didmeanpeakf, the dominant frequency (kHz), should match your dom_khzmeandom, dfrange, how the dominant frequency moves within the callbp = c(1, 4) is a band-pass filter in kHz: it tells warbleR to ignore the insects below 1 kHz. Report it in your methods, like the window length.
which becomes a sentence:
Call duration 0.35 ± 0.01 s (0.33–0.36 s; n = 4 calls from 1 male); call rate 37.5 ± 0.8 calls/min; dominant frequency 2.15 kHz.
Two ns, always: calls and males. Four calls from one male tell you about that male. Your team’s description needs several males, so Wednesday you split the recordings among you and pool with one shared rule.
Worksheet 06, on the pod:
You will measure the four calls in the practice clip, check yourself against warbleR, then measure ten consecutive calls from a 3-minute reference recording of a Texas E. marnockii male and write the summary sentence.
Submit the rendered HTML and the .qmd to Canvas by Tuesday Sep 15, 11:59 pm. Wednesday’s assignment assumes you can do this.
ut-fri-biodiversity.github.io/eleuth-calls