Learn R Programming

quantspec (version 1.0-0)

plot-SpecDistrWeight: Plot the values of the SpecDistrWeight.

Description

Creates a plot visualizing the weights $W_n(\omega)$ [cf. SpecDistrWeight-class] that are used to estimate the integrated quantile spectral density.

Usage

## S3 method for class 'SpecDistrWeight,missing':
plot(x, y, ylab = expression(W[n](omega)),
  xlab = expression(omega), main = x@descr, ...)

Arguments

x
The SpecDistrWeight to plot.
y
missing arg from the generic; will be ignored.
xlab
label for the x-axis; optional
ylab
label for the y-axis; optional
main
titel (on top) of the plot; optional
...
optional parameters used for plotting

Value

Details

In the plot the values at the frequencies $2\pi j / 128$, $j=-63,\ldots,64$ are shown.

Examples

Run this code
plot(specDistrWeight(),
       ylab=expression(W[n](x)),
       xlab=expression(x))

Run the code above in your browser using DataLab