% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/module6_auc_matrix.R
\name{plot_auc_heatmap}
\alias{plot_auc_heatmap}
\title{AUC clustering heatmap}
\usage{
plot_auc_heatmap(
  mat,
  title = "AUC heatmap",
  cluster_rows = TRUE,
  cluster_columns = TRUE
)
}
\arguments{
\item{mat}{A numeric matrix from \code{\link[=build_auc_matrix]{build_auc_matrix()}}.}

\item{title}{Plot title. Default \code{"AUC heatmap"}.}

\item{cluster_rows, cluster_columns}{Whether to cluster rows/columns. Default
\code{TRUE}.}
}
\value{
Invisibly, the drawn object. Called for its side effect (a plot on
the active graphics device).
}
\description{
Draws a clustered heatmap of the AUC matrix. Uses \pkg{ComplexHeatmap} (with
\pkg{circlize} for the colour scale) when available for a publication-quality
figure with a diverging navy-white-firebrick palette matching
\code{\link[=plot_delta_auc_heatmap]{plot_delta_auc_heatmap()}}, otherwise falls back to base \code{\link[stats:heatmap]{stats::heatmap()}}.
}
\examples{
\donttest{
drc <- calc_drc_auc(fit_4pl_curve(import_dose_response(hts_dose_response,
  response_col = "viability", group_cols = "cell_line"),
  group_cols = "cell_line"))
plot_auc_heatmap(build_auc_matrix(drc$meta, zscore = "row"))
}

}
\seealso{
\code{\link[=build_auc_matrix]{build_auc_matrix()}}, \code{\link[=plot_cluster_tree]{plot_cluster_tree()}}
}
