Learn R Programming

quantspec (version 1.2-4)

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

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

Value

Plots the SpecDistrWeight.

Arguments

x

The SpecDistrWeight to plot.

y

missing arg from the generic; will be ignored.

ylab

label for the y-axis; optional

xlab

label for the x-axis; optional

main

titel (on top) of the plot; optional

...

optional parameters used for plotting

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