igToPNG {integr} | R Documentation |
Exports Interaction graph to a PNG file
Description
Exports Interaction graph to a PNG file
Usage
igToPNG(ig, path = "", fName = "InteractionGraph", h = 2000)
Arguments
ig |
Interaction graph |
path |
The folder in which to write the PNG 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 PNG (.png
) 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 PNG
igToPNG(g, path = myDir, fName = "MyGraph", h = 2000)
[Package integr version 1.0.0 Index]