Rev 68948 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/stats/man/plot.spec.Rd% Part of the R package, https://www.R-project.org% Copyright 1995-2007 R Core Team% Distributed under GPL 2 or later\name{plot.spec}\alias{plot.spec}\alias{plot.spec.coherency}\alias{plot.spec.phase}\title{Plotting Spectral Densities}\description{Plotting method for objects of class \code{"spec"}. For multivariatetime series it plots the marginal spectra of the series or pairs plotsof the coherency and phase of the cross-spectra.}\usage{\method{plot}{spec}(x, add = FALSE, ci = 0.95, log = c("yes", "dB", "no"),xlab = "frequency", ylab = NULL, type = "l",ci.col = "blue", ci.lty = 3,main = NULL, sub = NULL,plot.type = c("marginal", "coherency", "phase"),\dots)plot.spec.phase(x, ci = 0.95,xlab = "frequency", ylab = "phase",ylim = c(-pi, pi), type = "l",main = NULL, ci.col = "blue", ci.lty = 3, \dots)plot.spec.coherency(x, ci = 0.95,xlab = "frequency",ylab = "squared coherency",ylim = c(0, 1), type = "l",main = NULL, ci.col = "blue", ci.lty = 3, \dots)}\arguments{\item{x}{an object of class \code{"spec"}.}\item{add}{logical. If \code{TRUE}, add to already existing plot.Only valid for \code{plot.type = "marginal"}.}\item{ci}{coverage probability for confidence interval. Plotting ofthe confidence bar/limits is omitted unless \code{ci} is strictlypositive.}\item{log}{If \code{"dB"}, plot on log10 (decibel) scale (as S-PLUS),otherwise use conventional log scale or linear scale. Logicalvalues are also accepted. The default is \code{"yes"} unless\code{options(ts.S.compat = TRUE)} has been set, when it is\code{"dB"}. Only valid for \code{plot.type = "marginal"}.}\item{xlab}{the x label of the plot.}\item{ylab}{the y label of the plot. If missing a suitable label willbe constructed.}\item{type}{the type of plot to be drawn, defaults to lines.}\item{ci.col}{colour for plotting confidence bar or confidenceintervals for coherency and phase.}\item{ci.lty}{line type for confidence intervals for coherency andphase.}\item{main}{overall title for the plot. If missing, a suitable titleis constructed.}\item{sub}{a sub title for the plot. Only used for \code{plot.type ="marginal"}. If missing, a description of the smoothing is used.}\item{plot.type}{For multivariate time series, the type of plotrequired. Only the first character is needed.}\item{ylim, \dots}{Graphical parameters.}}\seealso{\code{\link{spectrum}}}\keyword{hplot}\keyword{ts}