igToPDF {integr}R Documentation

Exports Interaction graph to a PDF file

Description

Exports Interaction graph to a PDF file

Usage

igToPDF(ig, path = "", fName = "InteractionGraph", h = 2000)

Arguments

ig

Interaction graph

path

The folder in which to write the PDF file;

fName

The name of the file to be created; "InteractionGraph" by default

h

Desired height of the image in pixels; 2000px by default

Value

Writes the ig interaction graph to a PDF (.pdf) file to the folder specified in the path

Examples

#create temp dir path with slashes
myDir <- gsub("\\\\", "/", tempdir())

#create interaction graph
g <- interactionGraph(golf, "Play", intNo = 10)

#write to PDF
igToPDF(g, path = myDir, fName = "MyGraph", h = 2000)

[Package integr version 1.0.0 Index]