lpacf.plot {lpacf}R Documentation

Function to produce various plots of the lpacf.

Description

This function can produce plots of the lpacf at specified times and/or lags.

Usage

lpacf.plot(lpacf,atTime=NULL,atLag=NULL,SaveToFile=FALSE,alpha=0.95,...)

Arguments

lpacf

An object produced by lpacf.

atTime

Vector of the times of the lpacf to be plotted named according to lpacf$the.x.

atLag

Vector of the lags (columns) of the lpacf to be plotted.

SaveToFile

If large numbers of plots are needed then set SaveToFile=TRUE to save them to a file. By default this will save in the current working directory with the name Rplotlpacf%03d.pdf.

alpha

alpha level for the confidence intervals, default 95% confidence.

...

Additional arguments can be supplied which will be passed to plot.

Details

Produces the desired 1-d plots of the lpacf at times and lags as specified by atTime and atLag.

Value

Silently returns the desired 1-d plots of the lpacf at times and lags as specified by atTime and atLag. If SaveToFile=TRUE then these are saved to a file in the current working directory rather than displayed.

Author(s)

Rebecca Killick

See Also

lpacf

Examples

# first generate a time-varying process
set.seed(879)
x=tvar2sim()

# calculate the lpacf
ans<-lpacf(x,lag.max=10,filter.number=2,family="DaubExPhase")

# then plot it at the first 10 lags at a couple of points in the data.
lpacf.plot(ans,atLag=1:10,atTime=c(150,350))

[Package lpacf version 1.0.1 Index]