| sn_theme | R Documentation |
Apply a visual theme to the network.
sn_theme(network, theme, ...)
network |
A cograph_network object, matrix, data.frame, or igraph object. Matrices and other inputs are auto-converted. |
theme |
Theme name (string) or CographTheme object. |
... |
Theme parameters to override, such as |
"classic"White background, blue nodes and gray edges.
"dark"Dark background with bright nodes, for presentations.
"minimal"Subtle styling with thin edges and muted colors.
"colorblind"Optimized for color vision deficiency.
"gray"/"grey"Black and white theme suitable for print.
"viridis"Perceptually uniform colors.
"nature"Nature-inspired colors.
Use list_themes() to see all available themes.
The cograph_network with the theme stored in its
theme element.
cograph for network creation,
sn_palette for color palettes,
sn_nodes for node customization,
sn_edges for edge customization,
list_themes to see available themes,
splot and soplot for plotting
cograph(regulation_net) |> sn_theme("dark") |> splot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.