Skip to contents

Write Graphics

Usage

writeGraphics(exportType, plot, filename, width, height)

Arguments

exportType

(character) file type of exported plot

plot

(object) plot object

filename

the output file path. The page number is substituted if a C integer format is included in the character string, as in the default. (Depending on the platform, the result should be less than PATH_MAX characters long, and may be truncated if not. See pdf for further details.) Tilde expansion is performed where supported by the platform. An input with a marked encoding is converted to the native encoding on an error is given.

width

the width of the device.

height

the height of the device.