rtfExportGraphToRTF
DESCRIPTION:
Exports all graphs in current graphsheet using export.graph.
Note this function only works when running Spotfire S+ Windows GUI.
USAGE:
rtfExportGraphToRTF(rtfFile, filetype = "WMF", width = 4, height = 3,
style = "", closeDevice = T)
ARGUMENTS:
- rtfFile
-
RTF file to write the graphics to
- filetype
-
filetype of the graph file; currently only WMF supported (default="WMF")
- width
-
Width of graph in inches (default=4)
height - height of graph in inches (default=3)
- height
-
Height of graph in inches (default=3)
- style
-
style to be used for the figure in the RTF file, useful for centering the figure ("\\qc"). Style choices are
"\\qc" - center the figure
"\\ql" - left justify the figure
"\\qr" - right justify the figure
- closeDevice
-
Logical value that determines if the open graphics device should be closed or not.
AUTHOR(S):
TIBCO Software Inc.
EXAMPLES:
# Only works under Windows GUI
if(platform() == "WIN386" && is.sgui.app()) {
rtfFile <- "mytest.rtf"
cat(file=rtfFile, rtfInit(bLandscape=T), append=F)
## create some dummy multiple graphs
plot(rnorm(10), rnorm(10))
plot(1:10, 10:1)
rtfExportGraphToRTF(rtfFile, filetype="WMF", width=4, height=3, style="")
rtfClose(rtfFile)
}