Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot-WspecMat

Plotting WspecMat objects


Description

Plotting a spectogram (image) of an object of class Wspec or WspecMat.

Usage

## S4 method for signature 'WspecMat,missing'
plot(x, xlab = "time", ylab = "Frequency", 
    xunit = c("samples", "time"), log = "", ...)
## S4 method for signature 'Wspec'
image(x, xlab = "time", ylab = "Frequency", 
    xunit = c("samples", "time"), log = "", ...)

Arguments

x

Object of class WspecMat (for plot) or Wspec (for image).

xlab, ylab

Label for x-/y-axis.

xunit

Character indicating which units are used to annotate the x-axis. If xunit = "time", the unit is time in seconds, otherwise the number of samples.

log

Character - "z" if the z values are to be logarithmic.

...

Further arguments to be passed to the underlying image function. See image for details.

Details

Calling image on a Wspec object converts it to class WspecMat and calls the corresponding plot function.
Calling plot on a WspecMat object generates an image with correct annotated axes.

Author(s)

See Also

see image, Wspec, WspecMat, periodogram and tuneR for the constructor function and some examples.


tuneR

Analysis of Music and Speech

v1.3.3
GPL-2 | GPL-3
Authors
Uwe Ligges <ligges@statistik.tu-dortmund.de> with contributions from Sebastian Krey, Olaf Mersmann, Sarah Schnackenberg, Guillaume Guenard, Andrea Preusser, Anita Thieler, Johanna Mielke and Claus Weihs, as well as code fragments and ideas from the former package 'sound' by Matthias Heymann and functions from 'rastamat' by Daniel P. W. Ellis. The included parts of the libmad MPEG audio decoder library are authored by Underbit Technologies.
Initial release
2018-07-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.