The R Project SVN R

Rev

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

Rev 30449 Rev 35072
Line 4... Line 4...
4
\alias{monthplot.ts}
4
\alias{monthplot.ts}
5
\alias{monthplot.stl}
5
\alias{monthplot.stl}
6
\alias{monthplot.StructTS}
6
\alias{monthplot.StructTS}
7
 
7
 
8
\title{
8
\title{
9
  Plot a Seasonal or other Subseries
9
  Plot a Seasonal or other Subseries from a Time Series
10
}
10
}
11
\description{
11
\description{
12
  These functions plot seasonal (or other) subseries of a time series.
12
  These functions plot seasonal (or other) subseries of a time series.
13
  For each season (or other category), a time series is plotted.
13
  For each season (or other category), a time series is plotted.
14
}
14
}
15
\synopsis{
15
\usage{
16
monthplot(x, \dots)
16
monthplot(x, \dots)
-
 
17
 
17
monthplot.StructTS(x, labels = NULL, ylab = choice, choice = "sea", \dots)
18
\method{monthplot}{stl}(x, labels = NULL, ylab = choice, choice = "seasonal", \dots)
-
 
19
 
18
monthplot.stl(x, labels = NULL, ylab = choice, choice = "seasonal", \dots)
20
\method{monthplot}{StructTS}(x, labels = NULL, ylab = choice, choice = "sea", \dots)
-
 
21
 
19
monthplot.ts(x, labels = NULL, times = time(x), phase = cycle(x),
22
\method{monthplot}{ts}(x, labels = NULL, times = time(x), phase = cycle(x),
20
             ylab = deparse(substitute(x)), \dots)
23
             ylab = deparse(substitute(x)), \dots)
-
 
24
 
21
monthplot.default(x, labels = 1:12,
25
\method{monthplot}{default}(x, labels = 1:12,
22
              times = 1:length(x),
26
          ylab = deparse(substitute(x)),
23
              phase = (times - 1)\%\%length(labels) + 1,
-
 
24
              base = mean,
27
          times = 1:length(x),
25
              xlim = c(0.55, f + 0.45), ylim = range(x, na.rm = TRUE),
28
          phase = (times - 1)\%\%length(labels) + 1, base = mean,
26
              axes = TRUE, xlab = "", ylab = deparse(substitute(x)),
-
 
27
              type = "l", box = TRUE, add = FALSE, \dots)
29
          axes = TRUE, type = c("l", "h"), box = TRUE, add = FALSE,
28
}
-
 
29
\usage{
-
 
30
monthplot(x, labels = NULL, times, phase, base, choice, \ldots)
30
          \dots)
31
}
31
}
32
\arguments{
32
\arguments{
33
  \item{x}{Time series or related object.}
33
  \item{x}{Time series or related object.}
34
  \item{labels}{Labels to use for each \dQuote{season}.}
34
  \item{labels}{Labels to use for each \dQuote{season}.}
-
 
35
  \item{ylab}{y label.}
35
  \item{times}{Time of each observation.}
36
  \item{times}{Time of each observation.}
36
  \item{phase}{Indicator for each \dQuote{season}.}
37
  \item{phase}{Indicator for each \dQuote{season}.}
37
  \item{base}{Function to use for reference line for subseries.}
38
  \item{base}{Function to use for reference line for subseries.}
38
  \item{choice}{Which series of an \code{stl} or \code{StructTS} object?}
39
  \item{choice}{Which series of an \code{stl} or \code{StructTS} object?}
-
 
40
  \item{\dots}{Arguments to be passed to the default method or
39
  \item{\dots}{Graphical parameters.}
41
    graphical parameters.}
-
 
42
  \item{axes}{Should axes be drawn (ignored if \code{add=TRUE})?}
-
 
43
  \item{type}{Type of plot.  The default is to join the points with
-
 
44
    lines, and \code{"h"} is for histogram-like vertical lines.}
-
 
45
  \item{box}{Should a box be drawn (ignored if \code{add=TRUE}?}
-
 
46
  \item{add}{Should thus just add on an existing plot.}
40
}
47
}
41
\details{
48
\details{
42
  These functions extract subseries from a time series and plot them
49
  These functions extract subseries from a time series and plot them
43
  all in one frame.  The \code{\link{ts}}, \code{\link{stl}}, and
50
  all in one frame.  The \code{\link{ts}}, \code{\link{stl}}, and
44
  \code{\link{StructTS}} methods use the internally recorded frequency and
51
  \code{\link{StructTS}} methods use the internally recorded frequency and