% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Orangutan.R
\name{categorical_analyses}
\alias{categorical_analyses}
\title{Categorical Data Analysis}
\usage{
categorical_analyses(
  data,
  cat_vars,
  output_dir,
  palette_name = "Paired",
  custom_colors = NULL
)
}
\arguments{
\item{data}{Data frame containing the variables}

\item{cat_vars}{Character vector of categorical variable names}

\item{output_dir}{Directory to save results}

\item{palette_name}{RColorBrewer palette name for categorical fills (default: "Paired")}

\item{custom_colors}{Optional named vector of colors for species (not used for categorical fills)}
}
\value{
A data frame with Chi-squared test results
}
\description{
Performs Chi-squared tests and generates proportional bar plots for categorical variables.
}
\keyword{internal}
