% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/simplicial.R
\name{plot.persistent_homology}
\alias{plot.persistent_homology}
\title{Plot Persistent Homology}
\usage{
\method{plot}{persistent_homology}(x, ...)
}
\arguments{
\item{x}{A \code{persistent_homology} object.}

\item{...}{Ignored.}
}
\value{
A grid grob (invisibly).
}
\description{
Two panels: Betti curve (threshold vs Betti number) and persistence
diagram (birth vs death).
}
\examples{
\donttest{
seqs <- data.frame(
  V1 = c("A","B","C","A","B"),
  V2 = c("B","C","A","B","C"),
  V3 = c("C","A","B","C","A")
)
net <- build_network(seqs, method = "relative")
ph  <- persistent_homology(net)
if (requireNamespace("gridExtra", quietly = TRUE)) plot(ph)
}

}
