% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotting_and_reporting_functions.R
\name{plot_enrichment_dotplots}
\alias{plot_enrichment_dotplots}
\title{Create enrichment dotplots from enrichResult objects}
\usage{
plot_enrichment_dotplots(enrichment_results, showCategory = 10, ncol = 2)
}
\arguments{
\item{enrichment_results}{A list or nested list of enrichResult objects.}

\item{showCategory}{Number of categories to display (default = 10).}

\item{ncol}{Number of columns for arranged plots (default = 2).}
}
\value{
Named list of combined ggplots. For nested input, names correspond to cell types;
for flat input, a single `"all"` entry is returned.
}
\description{
Generates dotplots from enrichment results. Input must contain enrichResult
objects (clusterProfiler / ReactomePA). Invalid entries are skipped with messages.
Works for single enrichResult, flat list (DEG types), or nested list (cell type → DEG type).
}
