igToSVG {integr}R Documentation

Exports Interaction graph to a SVG file

Description

Exports Interaction graph to a SVG file

Usage

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

Arguments

ig

Interaction graph

path

The folder in which to write the SVG 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 SVG (.svg) 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 SVG
igToSVG(g, path = myDir, fName = "MyGraph", h = 2000)

[Package integr version 1.0.0 Index]