% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{et_plot_decomposition}
\alias{et_plot_decomposition}
\title{Plot uncertainty decomposition}
\usage{
et_plot_decomposition(decomp, proportional = TRUE, group_col = NULL)
}
\arguments{
\item{decomp}{A \code{data.frame} from \code{\link{decompose_uncertainty}}
or directly the \code{$decomposition} slot of an \code{et_prediction}.}

\item{proportional}{Logical.  If \code{TRUE} (default), bars are scaled to
sum to 1 (proportional contribution).  If \code{FALSE}, raw variances
are shown.}

\item{group_col}{Character.  Optional name of a grouping column in
\code{decomp} (present for grouped predictions).}
}
\value{
A \code{ggplot2} object.
}
\description{
Produces a stacked bar chart showing the relative contributions of
parameter, environmental, and residual variance for each observation,
plus a fourth temporal-autocorrelation component when present in
\code{decomp} (see \code{\link{decompose_uncertainty}}).
}
