Learn R Programming

popgraph (version 1.4)

to_pgraph: Converts graph to a pgraph file format

Description

This is a simple function that takes the graph and converts it into a *.pgraph file for visualization in other software.

Usage

to_pgraph(graph, file)

Arguments

graph
An object of type popgraph
file
The name and location of where the *.pgraph file is to be saved. If ommitted, this function will return a single text file.

Value

Nothing if passed a file or the raw text of the *.pgraph file if you do not provide a file object.