% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/api-reports.R
\name{plot.apa_table}
\alias{plot.apa_table}
\title{Plot an APA/FACETS table object using base R}
\usage{
\method{plot}{apa_table}(
  x,
  y = NULL,
  type = c("numeric_profile", "first_numeric"),
  main = NULL,
  palette = NULL,
  label_angle = 45,
  draw = TRUE,
  ...
)
}
\arguments{
\item{x}{Output from \code{\link[=apa_table]{apa_table()}}.}

\item{y}{Reserved for generic compatibility.}

\item{type}{Plot type: \code{"numeric_profile"} (column means) or
\code{"first_numeric"} (distribution of the first numeric column).}

\item{main}{Optional title override.}

\item{palette}{Optional named color overrides.}

\item{label_angle}{Axis-label rotation angle for bar-type plots.}

\item{draw}{If \code{TRUE}, draw using base graphics.}

\item{...}{Reserved for generic compatibility.}
}
\value{
A plotting-data object of class \code{mfrm_plot_data}.
}
\description{
Plot an APA/FACETS table object using base R
}
\details{
Quick visualization helper for numeric columns in \code{\link[=apa_table]{apa_table()}} output.
It is intended for table QA and exploratory checks, not final publication
graphics.
}
\section{Interpreting output}{

\itemize{
\item \code{"numeric_profile"}: compares column means to spot scale/centering mismatches.
\item \code{"first_numeric"}: checks distribution shape of the first numeric column.
}
}

\section{Typical workflow}{

\enumerate{
\item Build table with \code{\link[=apa_table]{apa_table()}}.
\item Run \code{summary(tbl)} for metadata.
\item Use \code{plot(tbl, type = "numeric_profile")} for quick numeric QC.
}
}

\examples{
\donttest{
toy <- load_mfrmr_data("example_core")
fit <- fit_mfrm(toy, "Person", c("Rater", "Criterion"), "Score", method = "JML", maxit = 30)
tbl <- apa_table(fit, which = "summary")
p <- plot(tbl, draw = FALSE)
p2 <- plot(tbl, type = "first_numeric", draw = FALSE)
if (interactive()) {
  plot(
    tbl,
    type = "numeric_profile",
    main = "APA Numeric Profile (Customized)",
    palette = c(numeric_profile = "#2b8cbe", grid = "#d9d9d9"),
    label_angle = 45
  )
}
}
}
\seealso{
\code{\link[=apa_table]{apa_table()}}, \code{\link[=summary]{summary()}}
}
