% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot.fancy}
\alias{plot.fancy}
\title{Plot hybrid score distribution for a fancy result}
\usage{
\method{plot}{fancy}(x, ...)
}
\arguments{
\item{x}{An object of class \code{"fancy"} as returned by \code{\link[=fancy]{fancy()}}.}

\item{...}{Additional arguments passed to \code{\link[graphics:hist]{graphics::hist()}}.}
}
\value{
Invisibly returns \code{x}.
}
\description{
S3 plot method for objects returned by \code{\link[=fancy]{fancy()}}. Draws a histogram of
\code{HybridScore} across all scored edges with a vertical line at the
threshold cutoff. The number of retained edges is annotated.
}
\examples{
mock <- structure(list(
  edges = data.frame(source = "A", target = "B", HybridScore = 0.9),
  all_edges = data.frame(
    source = paste0("M", 1:20), target = paste0("M", 21:40),
    HybridScore = runif(20)
  ),
  params = list(threshold_method = "quantile", threshold_value = 0.7)
), class = "fancy")
plot(mock)

}
