register_theme: Register a Custom Theme

View source: R/aaa-globals.R

register_themeR Documentation

Register a Custom Theme

Description

Register a new theme for network visualization.

Usage

register_theme(name, theme)

Arguments

name

Character. Name of the theme.

theme

A CographTheme object or a list of theme parameters.

Value

Invisible NULL.

Examples

# Register a custom theme
register_theme("custom", list(
  background = "white",
  node_fill = "steelblue",
  node_border = "navy",
  edge_color = "gray50"
))

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