rtfStartGraph

DESCRIPTION:

Opens graphics device for writing graph to a file.

USAGE:

rtfStartGraph(wmfFile = NULL, filetype = "WMF", width = 4, height = 3, 
               setsize=T, pointsize=14, fonts = character(0))

ARGUMENTS:

wmfFile
file to write graph to; if NULL, function will create a new random file name (default=NULL)
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)
setsize
determines if the width/height parameters are ignored or not. If false (F), then width and height of graph are not set (default=T)
pointsize
passed onto the wmf.graph Spotfire S+ call; size in 1/72s of inch of text when par("cex") is 1. (default=14)
fonts
Font names that need to be available on the graphic, e.g. Arial, etc. Default is no specific fonts.

VALUE:

A list with information about the graph including filename, width and height. This information is the fileinfo used in the rtfEndGraph function.

AUTHOR(S):

TIBCO Software Inc.

EXAMPLES:

rtfFile <- "mytest.rtf"

## You can either call rtfInit(bLandscape=T/F, and additional settings)
## bLandscape will override pagewidth and pageheight
##
cat(file=rtfFile, rtfInit(bLandscape=F), append=F)

wmfInfo <- rtfStartGraph()

plot(1:10, 1:10, main="My Test Graph")

rtfEndGraph(rtfFile, wmfInfo)

rtfClose(rtfFile)