spssRGraphics.Submit Function (R)

spssRGraphics.Submit(filename). Displays a specified R graphic in the IBM® SPSS® Statistics Viewer. The argument is a character string specifying the path to a graphic file. The supported formats for the graphic file are: png, jpg and bmp. This function has no effect when running IBM SPSS Statistics from R.

Example

spssRGraphics.Submit("/plots/myplot.jpg")

Note: Since escape sequences in the R programming language begin with a backslash (\)--such as \n for newline and \t for tab--it is recommended to use forward slashes (/) in file specifications on Windows. In this regard, IBM SPSS Statistics always accepts a forward slash in file specifications.