powered by
Save a Cograph network visualization to a file.
sn_save(network, filename, width = 7, height = 7, dpi = 300, title = NULL, ...)
The output filename, invisibly.
filename
A cograph_network object, matrix, data.frame, or igraph object. Matrices and other inputs are auto-converted.
Output filename. Format is detected from extension.
Width in inches (default 7).
Height in inches (default 7).
Resolution for raster formats (default 300).
Optional plot title.
Additional arguments passed to the graphics device.
if (FALSE) { adj <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3) net <- cograph(adj) sn_save(net, file.path(tempdir(), "network.pdf")) }
Run the code above in your browser using DataLab