plot-KernelWeight function

Plot the values of the KernelWeight.

Plot the values of the KernelWeight.

Creates a plot visualizing the weights Wn(ω)W_n(\omega)

[cf. KernelWeight-class] that are used to estimate the quantile spectral density.

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

Arguments

  • x: The KernelWeight 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

Returns

Plots the KernelWeight.

Details

In the plot the values at the frequencies 2πj/N2\pi j / N, j=L+1N,,Lj=L+1-N,\ldots,L, L:=N/2L:=\lfloor N/2 \rfloor are shown, where NN is the parameter specified on construction of the object or N:=3N := 3, if that parameter was smaller than three. A warning is given in the later case.

Examples

plot(kernelWeight(W1, bw=0.3), ylab=expression(W[n](x)), xlab=expression(x), main="Weights to an Epanechnikov kernel", sub="bw=0.3")
  • Maintainer: Tobias Kley
  • License: GPL (>= 2)
  • Last published: 2024-07-11