% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model_spec.R
\name{plot.bdeb_model}
\alias{plot.bdeb_model}
\title{Plot a BDEB Model Specification}
\usage{
\method{plot}{bdeb_model}(x, pars = NULL, n = 200, ...)
}
\arguments{
\item{x}{A \code{\link[=bdeb_model]{bdeb_model()}} object.}

\item{pars}{Optional character vector of parameter names to plot.
Default: all priors in the model.}

\item{n}{Number of grid points per density curve. Default 200.}

\item{...}{Ignored.}
}
\value{
A \link[ggplot2:ggplot]{ggplot2::ggplot} object.
}
\description{
Displays the prior densities for the model parameters as a faceted
panel of curves.  Each parameter prior is drawn between the
\eqn{0.001} and \eqn{0.999} quantiles of its prior distribution; for
bounded supports (Beta, half-normal, half-Cauchy, exponential) the
lower bound is fixed at zero (or a small epsilon for densities that
diverge there).  Useful for sanity-checking prior choices before
calling \code{\link[=bdeb_fit]{bdeb_fit()}}.
}
\examples{
df <- data.frame(id = 1, time = 0:5, length = seq(0.1, 0.6, by = 0.1))
dat <- bdeb_data(growth = df)
mod <- bdeb_model(dat, type = "individual")
plot(mod, pars = c("p_Am", "kappa"))
}
