Description Usage Arguments Value Examples
Exports Interaction graph to a PNG file
1 |
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 |
Writes the ig
interaction graph to a PNG (.png
) file
to the folder specified in the path
1 2 3 4 5 6 7 8 | #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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.