-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathautoplot.breakpoints.Rd
41 lines (37 loc) · 995 Bytes
/
autoplot.breakpoints.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fortify_changepoint.R
\name{autoplot.breakpoints}
\alias{autoplot.breakpoints}
\alias{autoplot.breakpointsfull}
\title{Autoplot \code{strucchange::breakpoints}}
\usage{
\method{autoplot}{breakpoints}(
object,
data = NULL,
cpt.colour = "#FF0000",
cpt.linetype = "dashed",
...
)
}
\arguments{
\item{object}{\code{strucchange::breakpoints} or \code{strucchange::breakpointsfull} instance.}
\item{data}{Original time series. Mandatory for plotting \code{strucchange::breakpoints} instance.}
\item{cpt.colour}{Line colour for changepoints}
\item{cpt.linetype}{Line type for changepoints}
\item{...}{other arguments passed to \code{autoplot.ts}}
}
\value{
ggplot
}
\description{
Autoplot \code{strucchange::breakpoints}
}
\examples{
\dontrun{
library(strucchange)
bp.nile <- breakpoints(Nile ~ 1)
autoplot(bp.nile)
autoplot(bp.nile, is.date = TRUE)
autoplot(breakpoints(bp.nile, breaks = 2), data = Nile)
}
}