to_pgraph: Converts graph to a pgraph file format

View source: R/to_pgraph.R

to_pgraphR Documentation

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.

Author(s)

Rodney J. Dyer <rjdyer@vcu.edu>


dyerlab/popgraph documentation built on July 22, 2022, 5:42 p.m.