Learn R Programming

tuneR (version 0.2-6)

plot-Wspec: Plotting Wspec objects

Description

Plotting a periodogram contained in an object of class Wspec.

Usage

## S3 method for class 'Wspec,missing':
plot(x, which = 1, type = "h", xlab = "Frequency", 
    ylab = NULL, log = "", ...)

Arguments

x
Object of class Wspec.
which
Integer indicating which of the periodograms contained in object x to plot. Default is to plot the first one.
type
The default is to plot horizontal lines, rather than points. See plot.default for details.
xlab, ylab
Label for x-/y-axis.
log
Character - "x" if the x axis is to be logarithmic, "y" if the y axis is to be logarithmic (quite typical for some visualizations of periodograms), and "xy" or "yx" if both axes are to be log
...
Further arguments to be passed to the underlying plot functions. See plot.default for details.

concept

  • periodogram
  • Wave

See Also

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