Learn R Programming

soundgen (version 2.7.2)

plotUnrasterized: Plot unrasterized spetrogram

Description

Internal soundgen function

Usage

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,
  ...
)

Arguments

df

data to plot

xlim, ylim, zlim

range of values

levels, nlevels, pch, cex, color.palette, col, legend, asp, xaxs, yaxs, las, log, axisX, axisY

graphical parameters passed to plot()

yScale

scale of frequency representation

maxPoints

downsample if too big for plotting

Details

Helper function for adding a customized frequency axis to the spectrogram