The R Project SVN R

Rev

Rev 59039 | Rev 81315 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61433
Line 14... Line 14...
14
  of the coherency and phase of the cross-spectra.
14
  of the coherency and phase of the cross-spectra.
15
}
15
}
16
\usage{
16
\usage{
17
\method{plot}{spec}(x, add = FALSE, ci = 0.95, log = c("yes", "dB", "no"),
17
\method{plot}{spec}(x, add = FALSE, ci = 0.95, log = c("yes", "dB", "no"),
18
     xlab = "frequency", ylab = NULL, type = "l",
18
     xlab = "frequency", ylab = NULL, type = "l",
19
     ci.col = "blue", ci.lty = 3, 
19
     ci.col = "blue", ci.lty = 3,
20
     main = NULL, sub = NULL,
20
     main = NULL, sub = NULL,
21
     plot.type = c("marginal", "coherency", "phase"),
21
     plot.type = c("marginal", "coherency", "phase"),
22
     \dots)
22
     \dots)
23
 
23
 
24
plot.spec.phase(x, ci = 0.95,
24
plot.spec.phase(x, ci = 0.95,
25
                xlab = "frequency", ylab = "phase",
25
                xlab = "frequency", ylab = "phase",
26
                ylim = c(-pi, pi), type = "l",
26
                ylim = c(-pi, pi), type = "l",
27
                main = NULL, ci.col = "blue", ci.lty = 3, \dots) 
27
                main = NULL, ci.col = "blue", ci.lty = 3, \dots)
28
 
28
 
29
plot.spec.coherency(x, ci = 0.95,
29
plot.spec.coherency(x, ci = 0.95,
30
                    xlab = "frequency",
30
                    xlab = "frequency",
31
                    ylab = "squared coherency",
31
                    ylab = "squared coherency",
32
                    ylim = c(0, 1), type = "l",
32
                    ylim = c(0, 1), type = "l",
Line 44... Line 44...
44
    otherwise use conventional log scale or linear scale.  Logical
44
    otherwise use conventional log scale or linear scale.  Logical
45
    values are also accepted.  The default is \code{"yes"} unless
45
    values are also accepted.  The default is \code{"yes"} unless
46
    \code{options(ts.S.compat = TRUE)} has been set, when it is
46
    \code{options(ts.S.compat = TRUE)} has been set, when it is
47
    \code{"dB"}.  Only valid for \code{plot.type = "marginal"}.
47
    \code{"dB"}.  Only valid for \code{plot.type = "marginal"}.
48
  }
48
  }
49
  \item{xlab}{the x label of the plot.}  
49
  \item{xlab}{the x label of the plot.}
50
  \item{ylab}{the y label of the plot.  If missing a suitable label will
50
  \item{ylab}{the y label of the plot.  If missing a suitable label will
51
    be constructed.}
51
    be constructed.}
52
  \item{type}{the type of plot to be drawn, defaults to lines.}
52
  \item{type}{the type of plot to be drawn, defaults to lines.}
53
  \item{ci.col}{colour for plotting confidence bar or confidence
53
  \item{ci.col}{colour for plotting confidence bar or confidence
54
    intervals for coherency and phase.}
54
    intervals for coherency and phase.}