% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/motifs.R
\name{plot.cograph_motifs}
\alias{plot.cograph_motifs}
\title{Plot Network Motifs}
\usage{
\method{plot}{cograph_motifs}(
  x,
  type = c("bar", "heatmap", "network"),
  show_nonsig = FALSE,
  top_n = NULL,
  colors = c("#2166AC", "#F7F7F7", "#B2182B"),
  ...
)
}
\arguments{
\item{x}{A \code{cograph_motifs} object from \code{\link[=motif_census]{motif_census()}}}

\item{type}{Plot type: "bar" (default), "heatmap", or "network"}

\item{show_nonsig}{Show non-significant motifs? Default FALSE}

\item{top_n}{Show only top N motifs by |z-score|. Default NULL (all)}

\item{colors}{Colors for under/neutral/over-represented. Default blue/gray/red.}

\item{...}{Additional arguments passed to plotting functions}
}
\value{
A ggplot2 object (invisibly)
}
\description{
Visualize motif frequencies and their statistical significance.
}
\examples{
mat <- matrix(sample(0:1, 100, replace = TRUE, prob = c(0.7, 0.3)), 10, 10)
diag(mat) <- 0
m <- motif_census(mat, directed = TRUE, n_random = 50)
plot(m)
plot(m, type = "network")

}
\seealso{
\code{\link[=motif_census]{motif_census()}} for the analysis that produces this object

Other motifs: 
\code{\link{extract_motifs}()},
\code{\link{extract_triads}()},
\code{\link{get_edge_list}()},
\code{\link{motif_census}()},
\code{\link{motifs}()},
\code{\link{plot.cograph_motif_analysis}()},
\code{\link{subgraphs}()},
\code{\link{triad_census}()}
}
\concept{motifs}
