% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R
\name{plot.bsimSetup}
\alias{plot.bsimSetup}
\title{Plot Method for \code{BayesSIM_setup}}
\usage{
\method{plot}{bsimSetup}(x, select = NULL, ...)
}
\arguments{
\item{x}{A fitted object of \code{BayesSIM} or individual model.}

\item{select}{A vector of index or name of variables in data.}

\item{...}{Additional arguments passed to underlying plotting functions.}
}
\value{
A \code{ggplot} object is returned invisibly, allowing further modification if needed.
}
\description{
Produce diagnostic plots for a raw data.
}
\details{
The function displays scatter plots of the response variable against
each predictor variable. Each panel includes a smoothed trend line
to help assess the marginal relationship before fitting the model.
}
\examples{
\donttest{
simdata2 <- data.frame(DATA1$X, y = DATA1$y)

models <- BayesSIM_setup(y ~ ., data = simdata2)

plot(models, select = c("X1", "X2"))

}
}
\seealso{
\code{\link[=summary.bsimSetup]{summary.bsimSetup()}}
}
