% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/OLS_engine.R
\name{plot_engine}
\alias{plot_engine}
\title{Generate Publication-Ready Plots for Basic Models}
\usage{
plot_engine(model_object, y_label = NULL, x_label = NULL)
}
\arguments{
\item{model_object}{An object of class \code{basic_model} generated by
\code{\link{paper_engine}}.}

\item{y_label}{A character string for the Y-axis label. If \code{NULL}
(default), a label is generated automatically from the model type.}

\item{x_label}{A character string for the X-axis label. If \code{NULL}
(default), a label is generated automatically from the model type.}
}
\value{
A base R plot rendered in the active graphics device. The function
is called for its side effect (the plot) and returns \code{NULL} invisibly.
}
\description{
Produces minimalist APA-style plots from a \code{basic_model}
object returned by \code{\link{paper_engine}}. The plot type is selected
automatically based on the estimation method: a forest plot of coefficients
with 95\% CI for OLS, a group means plot with 95\% CI error bars for ANOVA,
and a logistic probability curve for logistic regression.
}
\examples{
set.seed(42)
df <- data.frame(y = rnorm(100), x1 = rnorm(100), x2 = rnorm(100))
result <- paper_engine(y ~ x1 + x2, data = df, model = "ols")
plot_engine(result, y_label = "Outcome", x_label = "Predictors")

}
