Learn R Programming

ggfortify (version 0.4.17)

ggcpgram: Plots a cumulative periodogram

Description

Plots a cumulative periodogram

Usage

ggcpgram(
  ts,
  taper = 0.1,
  colour = "#000000",
  linetype = "solid",
  conf.int = TRUE,
  conf.int.colour = "#0000FF",
  conf.int.linetype = "dashed",
  conf.int.fill = NULL,
  conf.int.alpha = 0.3
)

Value

ggplot

Arguments

ts

stats::ts instance

taper

Proportion tapered in forming the periodogram

colour

Line colour

linetype

Line type

conf.int

Logical flag indicating whether to plot confidence intervals

conf.int.colour

line colour for confidence intervals

conf.int.linetype

line type for confidence intervals

conf.int.fill

fill colour for confidence intervals

conf.int.alpha

alpha for confidence intervals

Examples

Run this code
if (FALSE) {
ggcpgram(AirPassengers)
}

Run the code above in your browser using DataLab