| sn_save | R Documentation |
Save a Cograph network visualization to a file.
sn_save(network, filename, width = 7, height = 7, dpi = 300, title = NULL, ...)
network |
A cograph_network object, matrix, data.frame, or igraph object. Matrices and other inputs are auto-converted. |
filename |
Output filename. Format is detected from the extension;
one of |
width |
Width in inches (default 7). |
height |
Height in inches (default 7). |
dpi |
Resolution for raster formats (default 300). |
title |
Optional plot title. |
... |
Additional arguments passed to the graphics device. |
The output filename, invisibly.
sn_save(cograph(regulation_net),
filename = file.path(tempdir(), "network.pdf"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.