% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mosaic_analysis.R
\name{plot.mosaic_analysis}
\alias{plot.mosaic_analysis}
\title{Plot method for mosaic_analysis objects}
\usage{
\method{plot}{mosaic_analysis}(x, ...)
}
\arguments{
\item{x}{A \code{mosaic_analysis} object.}

\item{...}{Styling overrides forwarded to the flat renderer.}
}
\value{
The \code{ggplot} object, invisibly (drawn as a side effect).
}
\description{
Re-renders the flat mosaic from the stored contingency table and residuals,
so styling can be changed without re-running the test. Any flat-mosaic
styling argument (\code{tile_label}, \code{pct_base}, \code{col_label_side},
\code{legend_size}, ...) may be overridden via \code{...}.
}
\examples{
df <- data.frame(
  a = sample(c("X", "Y", "Z"), 200, replace = TRUE),
  b = sample(c("P", "Q"), 200, replace = TRUE)
)
res <- mosaic_analysis(df, "a", "b", min_count = 5)
\donttest{
plot(res, tile_label = "percent", legend_position = "bottom")
}
}
