% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unsupervised-market-basket.R
\name{visualize_rules}
\alias{visualize_rules}
\title{Visualize Association Rules}
\usage{
visualize_rules(rules_obj, method = "scatter", top_n = 50, ...)
}
\arguments{
\item{rules_obj}{A tidy_apriori object, rules object, or rules tibble}

\item{method}{Visualization method: "scatter"
(default), "graph", "grouped", "paracoord"}

\item{top_n}{Number of top rules to visualize (default: 50)}

\item{...}{Additional arguments passed to plot() for rules visualization}
}
\value{
A \code{\link[ggplot2]{ggplot}} object when
\code{method = "scatter"}.
For other methods, the plot is produced as a side effect via
\pkg{arulesViz}.
}
\description{
Create visualizations of association rules
}
\examples{
\donttest{
if (requireNamespace("arules", quietly = TRUE)) {
  data("Groceries", package = "arules")
  res <- tidy_apriori(Groceries, support = 0.001, confidence = 0.5)
  visualize_rules(res, method = "scatter")
}
}

}
