% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/betaBinomial.R
\name{plot.cnormBetaBinomial}
\alias{plot.cnormBetaBinomial}
\title{Plot cnormBetaBinomial Model with Data and Percentile Lines}
\usage{
\method{plot}{cnormBetaBinomial}(x, ...)
}
\arguments{
\item{x}{A fitted model object of class "cnormBetaBinomial" or
"cnormBetaBinomial2".}

\item{...}{Additional arguments passed to the plot method.
\itemize{
   \item age A vector of the age data.
   \item score A vector of the score data.
   \item weights An optional numeric vector of weights for each observation.
   \item percentiles An optional vector with the percentiles to plot.
   \item points Logical indicating whether to plot the data points.
     Default is TRUE.
   \item discrete Logical indicating whether to plot the exact discrete
     beta-binomial quantiles (TRUE, default) or a smooth continuous
     approximation via the underlying beta distribution (FALSE).
 }}
}
\value{
A ggplot object.
}
\description{
This function creates a visualization of a fitted cnormBetaBinomial model,
including the original data points, the manifest percentiles (diamond-shaped
dots per age group) and the model-implied percentile lines.
}
\details{
By default (\code{discrete = TRUE}), the percentile lines represent the
exact quantiles of the fitted discrete beta-binomial distribution and are
therefore step functions. Setting \code{discrete = FALSE} draws smooth
lines based on the quantiles of the underlying beta (mixing) distribution.
Note that this continuous approximation omits the binomial stage of the
variance and therefore displays less spread than the fitted model actually
implies, particularly in the outer percentiles. Use it only for visual
comparability with continuous modelling approaches.

Cases with non-finite values (NA, NaN, Inf) in age, score or weights are
removed prior to plotting, mirroring the behavior of the fitting functions.
}
\seealso{
Other plot:
\code{\link[=compare]{compare()}},
\code{\link[=plot.cnorm]{plot.cnorm()}},
\code{\link[=plot.cnormBetaBinomial2]{plot.cnormBetaBinomial2()}},
\code{\link[=plotDensity]{plotDensity()}},
\code{\link[=plotDerivative]{plotDerivative()}},
\code{\link[=plotNorm]{plotNorm()}},
\code{\link[=plotNormCurves]{plotNormCurves()}},
\code{\link[=plotPercentileSeries]{plotPercentileSeries()}},
\code{\link[=plotPercentiles]{plotPercentiles()}},
\code{\link[=plotRaw]{plotRaw()}},
\code{\link[=plotSubset]{plotSubset()}}
}
\concept{plot}
