% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dm_wavelet_reconstruct.R
\name{plot.dm_wavelet_reconstruct}
\alias{plot.dm_wavelet_reconstruct}
\title{Plot method for dm_wavelet_reconstruct objects}
\usage{
\method{plot}{dm_wavelet_reconstruct}(
  x,
  y = NULL,
  series = NULL,
  type = c("compare", "reconstructed", "difference", "filtered"),
  facet = TRUE,
  legend_position = "right",
  line_width = 0.8,
  alpha = 0.7,
  main = NULL,
  ...
)
}
\arguments{
\item{x}{An object of class \code{"dm_wavelet_reconstruct"}.}

\item{y}{Unused.}

\item{series}{Optional character vector of series names to plot. If
\code{NULL}, all available reconstructed series are used.}

\item{type}{One of:
\describe{
  \item{`"compare"`}{Original and reconstructed series together.}
  \item{`"reconstructed"`}{Reconstructed component only.}
  \item{`"difference"`}{Original minus reconstructed.}
  \item{`"filtered"`}{Directly plot the returned filtered series. This is
    the extracted component for \code{mode = "extract"} and the
    component-removed series for \code{mode = "remove"}.}
}}

\item{facet}{Logical. If \code{TRUE}, facet by series.}

\item{legend_position}{Legend position passed to ggplot2.}

\item{line_width}{Line width.}

\item{alpha}{Alpha transparency for original series in compare plots.}

\item{main}{Optional title.}

\item{...}{Further arguments passed to or from other methods.}
}
\value{
A \code{ggplot2} object.
}
\description{
Plots reconstructed or filtered cycle components extracted by
\code{dm_wavelet_reconstruct()}.
}
