filled.contour.mod: Modified filled.contour

View source: R/spectrogram.R

filled.contour.modR Documentation

Modified filled.contour

Description

Internal soundgen function

Usage

filled.contour.mod(
  x = seq(0, 1, len = nrow(z)),
  y = seq(0, 1, len = ncol(z)),
  z,
  xlim = range(x, finite = TRUE),
  ylim = range(y, finite = TRUE),
  zlim = range(z, finite = TRUE),
  levels = pretty(zlim, nlevels),
  nlevels = 30,
  color.palette = function(n) grDevices::hcl.colors(n, "YlOrRd", rev = TRUE),
  col = color.palette(length(levels) - 1),
  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

x, y

locations of grid lines (NB: x = time, y = frequency in kHz, not Hz!)

z

numeric matrix of values to plot

xlim, ylim, zlim

limits for the plot

levels

levels for partitioning z

nlevels

numbers of levels for partitioning z

color.palette

color palette function

col

list of colors instead of color.palette

asp, xaxs, yaxs, ...

graphical parameters passed to plot.window() and axis()

log

log = 'y' log-transforms the y axis

axisX, axisY

plot the axis or not (logical)

Details

A bare-bones version of filled.contour that does not plot a legend and accepts some additional graphical parameters like tick marks.


soundgen documentation built on Sept. 29, 2023, 5:09 p.m.