% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/methods.R
\name{plot.cooccurrence}
\alias{plot.cooccurrence}
\title{Plot a cooccurrence network}
\usage{
\method{plot}{cooccurrence}(x, type = c("heatmap", "network"), ...)
}
\arguments{
\item{x}{A \code{cooccurrence} data frame.}

\item{type}{Character. \code{"heatmap"} (default) or \code{"network"}
(requires \pkg{igraph}).}

\item{...}{Passed to the plotting function.}
}
\value{
Invisibly returns \code{x}.
}
\description{
Plots the co-occurrence matrix as a heatmap. If \pkg{igraph} is available,
plots a network graph instead.
}
\examples{
res <- cooccurrence(list(c("A","B","C"), c("B","C"), c("A","C")))
plot(res)
}
