R/cograph-package.R

#' @title cograph: Modern Network Visualization for R
#'
#' @description
#' A modern, extensible network visualization package that provides high-quality
#' static and interactive network plots. cograph accepts adjacency matrices,
#' edge lists, or igraph objects and offers customizable layouts, node shapes,
#' edge styles, and themes.
#'
#' @section Main Functions:
#' \itemize{
#'   \item \code{\link{cograph}}: Main entry point for creating network visualizations
#'   \item \code{\link{sn_layout}}: Apply layout algorithms
#'   \item \code{\link{sn_nodes}}: Customize node aesthetics
#'   \item \code{\link{sn_edges}}: Customize edge aesthetics
#'   \item \code{\link{sn_theme}}: Apply visual themes
#'   \item \code{\link{sn_render}}: Render to device
#'   \item \code{\link{sn_ggplot}}: Convert to ggplot2 object
#' }
#'
#' @section Layouts:
#' cograph provides several built-in layouts:
#' \itemize{
#'   \item \code{circle}: Nodes arranged in a circle
#'   \item \code{spring}: Fruchterman-Reingold force-directed layout
#'   \item \code{groups}: Group-based circular layout
#'   \item \code{custom}: User-provided coordinates
#' }
#'
#' @section Themes:
#' Built-in themes include:
#' \itemize{
#'   \item \code{classic}: Traditional network visualization style
#'   \item \code{colorblind}: Accessible color scheme
#'   \item \code{gray}: Grayscale theme
#'   \item \code{dark}: Dark background theme
#'   \item \code{minimal}: Clean, minimal style
#' }
#'
#' @docType package
#' @name cograph-package
#' @keywords internal
#'
#' @import R6
#' @import grid
#' @import ggplot2
#' @importFrom graphics abline legend lines par plot
#' @importFrom grDevices col2rgb rgb colorRampPalette pdf png svg dev.off adjustcolor
#' @importFrom stats runif rnorm setNames median
#' @importFrom utils modifyList
"_PACKAGE"

Try the cograph package in your browser

Any scripts or data that you put into this service are public.

cograph documentation built on April 1, 2026, 1:07 a.m.