Internal soundgen function
plotUnrasterized(
df,
xlim = range(df$time, finite = TRUE),
ylim = range(df$freq, finite = TRUE),
zlim = range(df$magn, finite = TRUE),
levels = seq(min(df$magn, na.rm = TRUE), max(df$magn, na.rm = TRUE), length.out =
nlevels + 1),
nlevels = 30,
pch = 16,
cex = 0.25,
color.palette = function(n) grDevices::hcl.colors(n, "YlOrRd", rev = TRUE),
col = color.palette(nlevels),
legend = FALSE,
asp = NA,
xaxs = "i",
yaxs = "i",
las = 1,
log = "",
yScale = c("orig", "bark", "mel", "ERB")[1],
axisX = TRUE,
axisY = TRUE,
maxPoints = 5e+05,
...
)
data to plot
range of values
graphical parameters passed to plot()
scale of frequency representation
downsample if too big for plotting
Helper function for adding a customized frequency axis to the spectrogram