I then run the function using this code: lts(dir, wl = 1024, ovlp = 50, col = spectro.colors(30), fftw = FALSE, verbose = TRUE, ntann = NULL, tlab = "Time(min)", flab = "Frequency (kHz)" , recorder="audiomoth")
lts(dir, wl = 1024, ovlp = 50, col = spectro.colors(30), fftw = FALSE, verbose = TRUE, ntann = NULL, tlab = "Time(min)", flab = "Frequency (kHz)" , recorder="audiomoth")
The function appeared to process and list all the files correctly; however, an error message appears at the end: [1] "File # 1 20191003_050000.wav processed" [1] "File # 2 20191003_050505.wav processed" [1] "File # 3 20191003_051010.wav processed" [1] "File # 4 20191003_051515.wav processed" [1] "File # 5 20191003_052020.wav processed" [1] "File # 6 20191003_052525.wav processed" [1] "File # 7 20191003_053030.wav processed" [1] "File # 8 20191003_053535.wav processed" [1] "File # 9 20191003_054040.wav processed" [1] "File # 10 20191003_054545.wav processed" [1] "File # 11 20191003_055050.wav processed" [1] "File # 12 20191003_055555.wav processed"
Error in image.default(x = time, xaxt = "n", xlab = "", y = freq, ylab = flab, : 'x' and 'y' values must be finite and non-missing
[1] "File # 1 20191003_050000.wav processed"
[1] "File # 2 20191003_050505.wav processed"
[1] "File # 3 20191003_051010.wav processed"
[1] "File # 4 20191003_051515.wav processed"
[1] "File # 5 20191003_052020.wav processed"
[1] "File # 6 20191003_052525.wav processed"
[1] "File # 7 20191003_053030.wav processed"
[1] "File # 8 20191003_053535.wav processed"
[1] "File # 9 20191003_054040.wav processed"
[1] "File # 10 20191003_054545.wav processed"
[1] "File # 11 20191003_055050.wav processed"
[1] "File # 12 20191003_055555.wav processed"
Error in image.default(x = time, xaxt = "n", xlab = "", y = freq, ylab = flab, :
'x' and 'y' values must be finite and non-missing