Last data update: 2014.03.03

R: Coordinated time series and ACF and PCF plots.
tsacfplotsR Documentation

Coordinated time series and ACF and PCF plots.

Description

Coordinated time series and ACF and PCF plots.

Usage

tsacfplots(x,
           ylab=deparse(substitute(x)),
           x.name=ylab[[1]],
           main=paste("Series:", x.name),
           lag.at=NULL,
           lag.max=NULL,
           lag.units=NULL,
           lag.0=TRUE,
           ...)

acf.pacf.plot(x,
	      ylab=NULL,
	      series=deparse(substitute(x)),
	      main=paste("ACF and PACF:", series),
	      lag.max,
	      lag.units=frequency(x),
	      lag.at=pretty(apacf$lag),
	      lag.labels=lag.at*lag.units,
              lag.0=TRUE,
              strip=TRUE, strip.left=FALSE,
	      ...)

Arguments

x

time series

ylab, main

standard trellis arguments.

x.name, series

Character string, name for the time series.

lag.at

Location of ticks for the acf and pacf plots.

lag.labels

Labels for ticks for the acf and pacf plots.

lag.max

Maximum lag used in the acf and pacf plots.

lag.units

Units for time series, defaults to frequency(x)

lag.0

Logical. If TRUE, then plot the correlation (identically 1) at lag=0. If FALSE, do not plot the correlation at lag=0.

strip, strip.left

Standard lattice arguments described in xyplot.

...

Additional arguments to seqplot for tsacfplots. Additional arguments to strip.default for acf.pacf.plot.

Details

The acf and pacf plots are scaled identically.

Value

"tsacfplots" object containing two "trellis" objects.

Author(s)

Richard M. Heiberger (rmh@temple.edu)

See Also

seqplot

Examples

tsacfplots(co2)
acf.pacf.plot(co2)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(HH)
Loading required package: lattice
Loading required package: grid
Loading required package: latticeExtra
Loading required package: RColorBrewer
Loading required package: multcomp
Loading required package: mvtnorm
Loading required package: survival
Loading required package: TH.data
Loading required package: MASS

Attaching package: 'TH.data'

The following object is masked from 'package:MASS':

    geyser

Loading required package: gridExtra
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/HH/tsacfplots.Rd_%03d_medium.png", width=480, height=480)
> ### Name: tsacfplots
> ### Title: Coordinated time series and ACF and PCF plots.
> ### Aliases: tsacfplots acf.pacf.plot
> ### Keywords: hplot
> 
> ### ** Examples
> 
> tsacfplots(co2)
> acf.pacf.plot(co2)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>