filled.contour.mod | R Documentation |
Internal soundgen function
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,
...
)
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) |
A bare-bones version of filled.contour
that does not
plot a legend and accepts some additional graphical parameters like tick
marks.
data(sheep, package = 'seewave')
spec = spectrogram(sheep, from = 0.3, to = 0.6, plot = FALSE)
soundgen:::filled.contour.mod(z = t(spec))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.