postscript(file="PS", landscape=true, width, height)
file
| the name of a file to print to, it must be a quoted string. |
landscape
| the orientation of the printed image, a logical. |
width,height
| the width, and height of the graphics region in inches. The default is to use the entire page. |
file is opened and the PostScript commands needed to
plot any graphics requested are stored in that file.
This file can then be printed on a suitable device to obtain hard
copy.
See Also
x11, macintosh, device.
Examples
# open the file "foo" for graphics output
> postscript("foo")
# produce the desired graph(s)
> plot(x,y)
# quit and print the file out on a laser writer
> q()