% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pep_completeness.R
\name{plot.pep_completeness}
\alias{plot.pep_completeness}
\title{Plot Method for Completeness Assessment}
\usage{
\method{plot}{pep_completeness}(x, type = c("heatmap", "bar", "timeline"), top = 20, ...)
}
\arguments{
\item{x}{A \code{pep_completeness} object}

\item{type}{Character. Type of plot: \code{"heatmap"} for completeness
heatmap (requires 2 grouping variables), \code{"bar"} for observation
counts, \code{"timeline"} for year coverage. Default is \code{"heatmap"}.}

\item{top}{Integer. Number of top groups to display. Default is 20.}

\item{...}{Additional arguments (unused)}
}
\value{
A ggplot object (invisibly)
}
\description{
Creates visualizations of data completeness, including heatmaps and
bar charts.
}
\examples{
\donttest{
pep <- pep_download()
pep_ch <- pep[country == "Switzerland"]
comp <- pep_completeness(pep_ch, by = c("genus", "phase_id"))
plot(comp, type = "heatmap")
plot(comp, type = "bar", top = 15)
}

}
\author{
Matthias Templ
}
