% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vispstat.R
\name{vispstat}
\alias{vispstat}
\alias{plot.pedstats}
\title{Visualize Pedigree Statistics (internal)}
\usage{
vispstat(x, type = c("genint", "ecg"), metric = "ECG", ...)

\method{plot}{pedstats}(x, ...)
}
\arguments{
\item{x}{A \code{pedstats} object returned by \code{\link{pedstats}}.}

\item{type}{Character. The type of plot to generate:
\itemize{
  \item \code{"genint"}: Bar chart of mean generation intervals.
  \item \code{"ecg"}: Histogram of ancestral depth metrics (ECG, FullGen, or MaxGen).
}}

\item{metric}{Character. Specific metric to plot when \code{type = "ecg"}.
Options: \code{"ECG"} (default), \code{"FullGen"}, \code{"MaxGen"}.}

\item{...}{Additional arguments passed to \code{\link[lattice]{barchart}} or 
\code{\link[lattice]{histogram}}.}
}
\value{
A lattice plot object.
}
\description{
Internal plotting backend for \code{\link{plot.pedstats}}.
Users should call \code{plot(stats, ...)} instead of this function directly.
}
\seealso{
\code{\link{pedstats}}, \code{\link{plot.pedstats}}
}
\keyword{internal}
