Learn R Programming

tuneR (version 0.2-6)

plot-WspecMat: Plotting WspecMat objects

Description

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

Usage

## S3 method for class 'WspecMat,missing':
plot(x, xlab = "time", ylab = "Frequency", 
    xunit = c("samples", "time"), log = "", ...)
## S3 method for class '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.

concept

  • periodogram
  • spectogram
  • Wave

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.

See Also

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