% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/merton_sim.R
\name{diagnosticPlots}
\alias{diagnosticPlots}
\title{Diagnostic Plots for a JDSimResult Object}
\usage{
diagnosticPlots(object)
}
\arguments{
\item{object}{A \linkS4class{JDSimResult} object.}
}
\value{
A named list of three \code{ggplot} objects:
\itemize{
\item \code{fan_chart}: simulated path quantile fan chart.
\item \code{density}: histogram of log-returns with a normal overlay.
\item \code{acf_sq}: autocorrelation of squared log-returns with 95\\% bounds.
}
}
\description{
Creates three diagnostic plots for a \linkS4class{JDSimResult} object:
a simulated path fan chart, a histogram of log-returns with a normal
density overlay, and the autocorrelation function of squared log-returns.
}
\examples{
\donttest{
m    <- MertonModel()
sim  <- simulateMerton(m, n = 50, T_ = 1, steps = 100)
plts <- diagnosticPlots(sim)
print(plts$fan_chart)
print(plts$density)
print(plts$acf_sq)
}

}
